refactor ProgramLoader, RunProcess to remove static state

**please review**
Hmm... ok. Let me make a pull request which removes the static state from this class.