MB-9979 Some mb_map refactoring.
MB-9979 Some mb_map refactoring.

So that functions that match past maps could be used outside mb_map
module.

Change-Id: Ia7247981ffc5e201dd2eeba52da949b4179fac60
Reviewed-on: http://review.couchbase.org/34220
Tested-by: Aliaksey Artamonau <3c875bcfb3adf2a65b2ae7686ca921e6c9433147@gmail.com>
Reviewed-by: Aliaksey Kandratsenka <340b8e09ca65cd3fc686427fcfed17e87eaf61e2@gmail.com>

ceejatec/ns_server,nimishzynga/ns_server,mschoch/ns_server,daverigby/ns_server,nimishzynga/ns_server,ceejatec/ns_server,nimishzynga/ns_server,nimishzynga/ns_server,mschoch/ns_server,nimishzynga/ns_server,ceejatec/ns_server,t3rm1n4l/ns_server,t3rm1n4l/ns_server,membase/ns_server,daverigby/ns_server,mschoch/ns_server,t3rm1n4l/ns_server,membase/ns_server,mschoch/ns_server,ceejatec/ns_server,daverigby/ns_server,mschoch/ns_server,daverigby/ns_server,nimishzynga/ns_server,ceejatec/ns_server,membase/ns_server,ceejatec/ns_server,t3rm1n4l/ns_server,membase/ns_server,membase/ns_server,mschoch/ns_server,daverigby/ns_server,t3rm1n4l/ns_server,membase/ns_server