Code to allow applying a binding redirect to a .config file.
Refactored some code on binding redirects and made some helper functions to make it easier to consume.