Changed logging to a dictionary configuration (loaded from a json file).

Fancy stuff :)