Issue 13 - Grunt automation

This is the PR for adding grunt tasks to automate publishing to NPM, bower and the build process. The scope of the bug changed slightly, but only because multiple problems are easily solved at the same time.