Add part of the TODO.
Add server.state.
Cleanup of sever.core.
Add message types.