beginning of peer protocol

began peer protocol. added some handshake code and reference info about messages.