Gateway recovery

Global maximum packet size set to 2k to help prevent hackers
Allow client to not be logged in for hacking
When gateway loses connection, go into a state to recover the connection