CBD-1217:  separate HTML page generation from page display

Change-Id: I4110c1b7026c93d94a0c7650dc627ed0b555039c
Reviewed-on: http://review.couchbase.org/33126
Reviewed-by: Philip Labee <philip@couchbase.com>
Tested-by: Philip Labee <philip@couchbase.com>