add grunt task for minifying code, factored test code so we can run against full source (index.html) or minified source (index.min.html)

...est runner into test.main.js, create test.min.html to run tests against minified source