Most of Main Core finished

There's some odds and ends like that the error logging could be better.
The big thing is the StateManager, but even that's mostly stubs and
filler using console to stand in for what will be in place once we start
core integration.