User lib for CouchDb&AngularJS based apps