Specify datadir in settings.
Refactoring epoch-patches json pair manipulation into patching module.