add to_hash method to Message
check explicitly for nil in to_hash, return dup of string if field is a string
Merge pull request #18 from centzy/message_to_hash

Add to_hash method to Message