Moved Main code into tests

This will allow me to run "tests" during grunt, but not have those tests
included in packages distributed by bower.