promised based, $digest aware, object persistence layer for angularjs apps using pouchdb