Angular API for CouchDB (my take on it)