simple connection related commands. Moved a lot of code to handshake.h. Rev: src/connection_commands.h:1.16