Add support for grunt-blanket-mocha

Allow gruntOptions to be a function (optionally) and expose
window.PHANTOMJS as env.isHeadless(). Also simplify CoverageRunner a
bit and delegate loading of the test modules to a TestLoader.