Refactor generator

* Remove support for node < 0.10
* Set to lf, in case users don't have `core.autocrlf set`.
* Use the new `.extend()` method instead of `util.inherit`
* Add test `mockPrompt` and `expected` file.