Implemented configuration via JSON.
Implemented logging.