Fix bug in deployment version

The wrong index.html file was created, some of the preprocessing wasn't
done correctly.
Update grunt plugins