common: reduce common to holding only Log and Config
main: JSON config parsing and logging to a file