Add support for metadata update/delete

This is fairly simplistic, but I thought that would be a good starting point.

Let me know what you think, and if you'd like any changes.