Port subgenerator to CoffeeScript
Bump up version to 0.3.1