Use oslo.config.

Also make sure __main__ is tested.