added initial stuff for couchapp