WIP: Local work remover
Allowing for removal of global variables using local work remover.
Starting this merge request so @inducer can review and comment on the code. Any suggestions are welcome. I think I'm probably making this more complicated than necessary in some places.
Edited by James Stevens