Built message.py

Also implemented HackGMSDatabase, which provides a simple database
interface—this is used internally by Message, but should not need to be
accessed directly except for initializing the database. Also added
testing_messages.md, which explains how to use messages.