Changes to make google auth work.
Added custom authorizer so that we can use couchdb's oauth implementation.
Changes to make couch db oauth work on XHR calls.