Parse Handshake struct

This currently works for all the message structs present in master at the moment.