Add option for JSON output to HealthCheckServlet

In reference to a feature request: https://github.com/codahale/metrics/issues/243

Added code to HealthCheckServlet to provide JSON output if 'Accepts' header of the HttpServletRequest is set to 'application/json'.

Updated unit tests to verify JSON output.