Start centralizing process state changes.
Merge pull request #309 from cgjones/centralize-state-change

Start centralizing process state changes.