adding CouchDBBase
added stateMachine to CouchDBBase
added configuration methods to CouchDBBase
adding common API