Cache MongoStateService instances.
Added CouchDB state, untested.
Minor fixes to MongoState and AbstractState.