Updated to the new Doorkeeper and fixed scopes and couchbase views