Feature/ngui refactor part3

final step of https://issues.cask.co/browse/COOPR-559

 * each feature is a module
 * renames the _.directives_ module to _.commons_

+ whitespace cleanup by editorconfig.org plugin on those files that were edited.