Chnaged connection code

-Will now try to connect untill connect is established

TODO:
-Limit connection attemps and ( maybe ) let this be done in a separate
thread.
Improve TCPConnection ouput

-Logs when resolving host
-Logs when resolving host failed
-Logs when connection is opened
-Uncommented logging when AcceptConnection fails
-Improved utput of when host is connected
Added freeing of socket in TCPConnection

-Socket is noe freed in the destructor of TCPConnection