refactor ProgramLoader, RunProcess to remove static state

**please review**
fun fact, this block is actually unreachable. I delete it in another pull request I have out right now. This one is just changing indentation though. You should view this block of code while ignoring whitespace.