fix problem where handshake was a failure, refactored ZMTPSocketType to int
implemented ZMTP/2.0 frame parser