Don't modify index.html in place
Do some refactoring
Translate to coffeescript
Template refactoring
More refactoring
More refactoring
More refactoring
More refactoring
Restore mkdirp
Move stuff around