correctly build document url in docs section
correctly build document url in docs section

So that _design/XXX can be viewed/edited.

Couch API has one inconvenient quirk which is _local/ and _design/
urls need to be built specially (or resultant redirect needs to be
handled). We have a nice helper that takes this into account. So we
just use it.

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

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