Reworked the grunt build process with more tasks and added a basic test on the timeline template compilation.