… handling
Server.database('dbname') returns a Database object relative to the Server.
Resource.request() was catching errors in success functions and calling them 'json_error'. Move the call to success func outside of the try clause.
Database.view() was incomplete. Now shares its implementation with allDocs.