Cleanup use statements
Fix CS errors and use correct exceptions
update bakeTask
Fix additional, pointless and sometimes harmful inflections.

Since CakePHP 3.0's conventions are that most things are plural, we
don't need to be pluralizing things as people will be thinking in terms
of plural forms. Removing this code from bake makes it much easier to
accomodate names like menus without incorrectly inflecting them.

Fixes #4647
fix CS
Merge pull request #4739 from antograssiot/3.0-fix-cs

3.0  CS correction
Consolidate duplicated code and fix a few issues.

* Fixup the message to be more generic.
* Exclude 'enabled' from config comparison. Components are often loaded
  by other components with enabled=false which should not cause errors.
* Fix loggers being rebuilt each time a config is defined and used.