Clean up and refactor extension configuration
* Add more configuration options
* Make use of configuration values in extension