Add functionality to sample backend

* set_properties
* save (message)
* delete_message
* create_attachments
* get_attachment_ids
could you please simplify this a bit - we may have only one message with id='mid', not quite obvious we expect that :)