Added message structs and funcs. \n\n Removed that server stuff for thorough refactoring.