base code was separated to CouchDbHttpApiBase.py