RUBY-645 add equality + hash methods to wire protocol messages

Pretty self-explanatory. Please review to make sure putting the logic for these into message is :ok:.