Added tiny templating feature to make the basic HTML page easier to read.

Also added a trim around the contents of the status file so that spurious newlines with a 0 content don't suddenly indicate the space as 'open'.
Moved contents for status page into a separate file used for templating.