[minor] Debug information
[major] Implement a bunch of API endpoints that query existing npm/couchdb views