Hatton repository classes and tests.
Merge branch 'master' of https://github.com/forevertrevor/hatton