Messaging system now sends java objects over the socket instead of raw
text. This is the base framework for a more robust messaging system.