Implement catalog register and deregister
Add WriteOptions to arguments and WriteMeta to return values to match
the other write methods
Merge pull request #2 from mizzy/catalog-register-and-deregister

Implement catalog register and deregister