Build system tweaks

So this creates more specific tasks for the builds. There's now a devbuild task and a releasebuild task.

These put only the necessary files in the dist folder.

Still to do
- [x] Have grunt create a file with the hash of the current commit
- [x] Need to fix the langtests to run correctly