Provide url inspection/manipulation API via SetUrlManager

Re-submission of previous API change, but with much cleaner implementation, and without writing in the code-gen'd files. The intent here is to provide an API that we can use to re-route stacman traffic to a different domain to avoid network traversals - but provided in a way that allows general purpose url inspection.