Added basic server handshake. Time still has to be synced.