Added PouchREST: function to convert CouchDB API to PouchDB API