Refactor config directives into one hash

This cleans up the configuration file JSON.pretty_generate