rework angular-pouchdb into custom provider that doesn't have directive and supports authentication plugin.