Dispatch sub-enpoints
Dispatch sub-enpoints

_spatial endpoints can have sub-endpoints like _spatial/_compact.
Those need manual dispatching. This commit prepares the manual
compaction.

Change-Id: I999e2ad9df7d95a94312abc41bd5877002196e27
Reviewed-on: http://review.couchbase.org/11612
Reviewed-by: Aliaksey Kandratsenka <340b8e09ca65cd3fc686427fcfed17e87eaf61e2@gmail.com>
Tested-by: Aliaksey Kandratsenka <340b8e09ca65cd3fc686427fcfed17e87eaf61e2@gmail.com>

pavel-blagodov/ns_server,membase/ns_server,vzasade/ns_server,vzasade/ns_server,membase/ns_server,pavel-blagodov/ns_server,nimishzynga/ns_server,mschoch/ns_server,membase/ns_server,nimishzynga/ns_server,pavel-blagodov/ns_server,ceejatec/ns_server,ceejatec/ns_server,ceejatec/ns_server,membase/ns_server,nimishzynga/ns_server,membase/ns_server,ceejatec/ns_server,nimishzynga/ns_server,daverigby/ns_server,t3rm1n4l/ns_server,mschoch/ns_server,vzasade/ns_server,t3rm1n4l/ns_server,daverigby/ns_server,mschoch/ns_server,mschoch/ns_server,daverigby/ns_server,t3rm1n4l/ns_server,mschoch/ns_server,ceejatec/ns_server,daverigby/ns_server,ceejatec/ns_server,nimishzynga/ns_server,daverigby/ns_server,pavel-blagodov/ns_server,t3rm1n4l/ns_server,vzasade/ns_server,t3rm1n4l/ns_server,mschoch/ns_server,membase/ns_server,nimishzynga/ns_server