Rename CHAN_* to CHANNEL_*
Rename @kex to @server_kex, add @client_kex, add #send_packet.
Updated list of constants.
Add build_packet() and update send_packet() accordingly. Add default values for @proc, @command, @keyson.
Added boilerplate for all callbacks that should be needed to get to a two-way encrypted connection.