Simplifies CouchDB views

Until now every document has been emitted into the view. This would
have caused a significant waste of space in the long run. The solution
is to emit `null` in the view and use the *include_docs* option to get the
documents with the view.