Refactor of client code.

AP-122
AP-122

One step closer to working client to client communication over the server.
Added so that client can send login message to server

AP-122
Friends list Request and Response working

AP-122
I CAN SEE THE LIGHT!!

AP-122
Chat working, Log class on server, safe closure of server threads

AP-122
Started work in test framework. Have 10 test ready and working. AP-182
Quick detour to fix so that log function prints to file as well as to screen. AP-182
Database connection up and running! AP-153, AP-155