(Warning, this commit has an unstable boot-sequence for schedulers) 
Rename AgentFactory to AgentHost
Change singleton behavior for State and Scheduler
Move loading of config to explicit function.