Okay, overboard with the whole 2 tier experiment, it seems impossible, but fuck 3 tier, lets try 1 tier first

Working version no longer works in the browser and needs to be put into
CouchDB to work.