Convert to a Yeoman generator and various other improvements