Added the basic messaging functionality. Work on some of the gui
features such as the online users list is ongoing. However work on
sperate chat rooms and private messaging will also be worked on as the
project develops. Soon the code will undergo a complete clean up and all
error handling will be officalised and generally the code will be tided.