Make use of 'remote' variable
Use pouch's replicate call instead of CouchRest replicate wrapper
Add 'query' method for querying with map/reduce functions