Work on JHelper and related areas

This pull request does some refactoring to reduce duplication of methods in various JHelper child classes and JUcm classes. It also adds skeletons for unit tests for these classes.