Chat server and Chat listener from exercises plus additional changes and added methods.