Finished up defining Message class.

Fixed the foreign key field and added a relationship to allow
us to access the actual required message, not just its key.