Refactoring config to use oslo.config
A few fixes