Add functionality to sample backend

* set_properties
* save (message)
* delete_message
* create_attachments
* get_attachment_ids
The way it's implemented right now, the cache is cleaned only if the message is found in the "messages" list first. It's probably better to look separately in both lists in delete_message() than implementing a destructor. Cheers!