Codenarc: added plugin and configured rules, and fixes