CouchDB user authentication from the browser