Various tweaks to #314
Various tweaks to #314

Use plain object getters and code style

yeoman/generator,yeoman/generator,JulienCabanes/generator,rutaihwa/generator,andrewstuart/generator,yeoman/environment