Improve HTML Detection in History Support Middleware

Use built in ExpressJS methods for detecting HTML in the Accept header.
Merge pull request #1228 from jherdman/improve-html-detection-in-history-support

Improve HTML Detection in History Support Middleware
Remove extra test noise.

`runCommand` already prints the output, there is no reason to log it
again.
Merge pull request #1232 from rjackson/remove-extra-test-noise

Remove extra test noise.
Allow running tests in production.