MCollective / CouchDB / PouchDB / AngularJS interaction working