config: Switch logging to new config system

Fixes #245 and helps #280 along.