couchapp added, fixing json requests as well