message mixins
Added mixins for JSON serialization and Messages