Added support for Disconnect packets
Implemented initial gateway functionality