reworked amp protocol for authorized connections.
this will lay the ground work for supporting an encrypted transport.