Adds a context manager & decorator to dynamically override settings.