Fixed many bugs. Now we are able to communicate with the servers and send the auth packets.
Need to add disconnect/auth failed callbacks to notify UI in case of wrong auth.
Also need to signal the UI when the auth has finished and we are connected.