Client can now login

Also added support for the disconnect packet to let the client know why
the connection was closed.