Major refactor

Moved a lot of source around
Grunt for build and test automation