Add functionality to sample backend

* set_properties
* save (message)
* delete_message
* create_attachments
* get_attachment_ids
The bindings shouldn't expose MIDs/FIDs and should enforce the use of URIs, but I needed to implement this in order to handle messages in the Sample backend (it doesn't register URIs yet).