Created the Message class which includes abstracts for publish, receive and serialize

Not sure if this is still necessary, but left it just in case.