Features #2491 and #2371: create shared database in couch and remove non-token auth schemes