Typescript template generation

Added generating of template from command-line, which I've missed. The code is based on https://github.com/rails/coffee-rails.