Refactor option-gathering logic into a separate submodule
Implement loading of parameters from (optionally encrypted) json files.