This also rewrites the logic to be in golang, which will make it easier to refactor portions of it to use the property system going forward.
Also translate the code to golang.
This change makes interacting with port mappings more clear - folks might previously set the port mapping to the proxy type or vice-versa. The existing proxy:ports* commands still exist but will show a deprecation warning for a single minor release.