WORDS-387 - create unit tests for CountWordsController.java class, some refactoring, deleted unused dependencies, added 'com.jayway.jsonpath:json-path:0.9.1'