MB-15115 show view section for the ddoc only if the views
MB-15115 show view section for the ddoc only if the views

...of corresponding type are present in the ddoc. For example if
the ddoc contains only spatial views the section for mapreduce views
with all stats = 0 won't be shown.

Change-Id: I9789f68b3b132342570bd2224041c9289597f6e6
Reviewed-on: http://review.couchbase.org/52001
Tested-by: Artem Stemkovski <15a0730a27c69f62ab86f2b6c639fca202166c02@couchbase.com>
Reviewed-by: Volker Mische <fb414f8ac0dbbf87663550ae4ef5fc95b1041941@gmail.com>
Reviewed-by: Aliaksey Artamonau <3c875bcfb3adf2a65b2ae7686ca921e6c9433147@gmail.com>

mschoch/ns_server,membase/ns_server,nimishzynga/ns_server,ceejatec/ns_server,mschoch/ns_server,membase/ns_server,ceejatec/ns_server,ceejatec/ns_server,nimishzynga/ns_server,mschoch/ns_server,ceejatec/ns_server,ceejatec/ns_server,membase/ns_server,mschoch/ns_server,ceejatec/ns_server,nimishzynga/ns_server,nimishzynga/ns_server,membase/ns_server,membase/ns_server,nimishzynga/ns_server,nimishzynga/ns_server,membase/ns_server,mschoch/ns_server,mschoch/ns_server