Use class-extend and running context

See http://yeoman.io/authoring/running-context.html for running context
and http://yeoman.io/blog/cleanup.html for the class-extend notation
being encouraged from the makers of yeoman.