Removed system.out
Tidied up code in JsonCasAdapter, but this exposed problems elsewhere
which caused a major refactor. Primarily moved the date ordering out of
diff package and into commit.