As proposed in my email yesterday: here are the changes to add database and view compaction. This is my first attempt at a Git pull request, so please do let me know if I'm doing something wrong. Thanks,
Added Compact, and refactored ViewCleanup.
Added Keys to ViewOptions
I needed the keys argument on my view requests, as described at http://wiki.apache.org/couchdb/HTTP_view_API#Querying_Options, so have added another commit to this branch which adds a new Keys property to ViewOptions. The changes are completely independent of those in the first commit, so you can pick and choose which you want to add.
Thanks nick. These are great. Sorry for the delay