Fixes for scaffolding and grunting

There was some problems that I found in the scaffolding of component's and the index.html when trying to work with the generator. 

I also found out some mistakes that I seem to have made earlier in the grunt file. Now the Uglify task works properly and a minified script file is created in the dist/scripts directory.