Refactor: use maps to map between text strings
Refactor: use maps to map between text strings

Change-Id: I059341e19b0db746b535a4b3d261634f09664865
Reviewed-on: http://review.couchbase.org/7109
Tested-by: Dustin Sallings <1c08efb9b3965701be9d700d9a6f481f1ffec3ea@spy.net>
Reviewed-by: Dustin Sallings <1c08efb9b3965701be9d700d9a6f481f1ffec3ea@spy.net>

abhinavdangeti/ep-engine,teligent-ru/ep-engine,daverigby/kv_engine,abhinavdangeti/ep-engine,couchbaselabs/ep-engine,abhinavdangeti/ep-engine,sriganes/ep-engine,abhinavdangeti/ep-engine,owendCB/ep-engine,jimwwalker/ep-engine,couchbaselabs/ep-engine,couchbaselabs/ep-engine,owendCB/ep-engine,couchbase/ep-engine,couchbase/ep-engine,teligent-ru/ep-engine,couchbase/ep-engine,couchbaselabs/ep-engine,daverigby/ep-engine,sriganes/ep-engine,membase/ep-engine,hisundar/ep-engine,couchbase/ep-engine,jimwwalker/ep-engine,hisundar/ep-engine,membase/ep-engine,owendCB/ep-engine,daverigby/kv_engine,teligent-ru/ep-engine,owendCB/ep-engine,jimwwalker/ep-engine,membase/ep-engine,hisundar/ep-engine,membase/ep-engine,couchbaselabs/ep-engine,daverigby/ep-engine,sriganes/ep-engine,daverigby/kv_engine,sriganes/ep-engine,abhinavdangeti/ep-engine,jimwwalker/ep-engine,daverigby/ep-engine,daverigby/ep-engine,daverigby/kv_engine,hisundar/ep-engine,teligent-ru/ep-engine