Started server side code to sit between the client and couchdb

This should give me more options for user security, and eventually
swapping out couchdb for something else.