Turned JsonDataRepo into singleton.
More refactoring.