Added basic client-server chat functionality. Basic exception handling.