Begin using authentication to authorize access to resource functions.

note: couchdb views used are not yet in repository