Big refactoring to genericise utility classes and to better support mocking/stubbing (via use of abstract factory classes). Added 7 unit tests to cover rest resources and core TestMonkey server objects. Tested working, happy for move from RC to 1.1 final