update gradle wrapper to 1.7
refactored handler out into a class & added unit tests based on new Ratpack unit test support
fix functional tests