refactoring everything, moving console and chat into separate modules, batch initial console/chat messages in one call to client