Factor out most of ctl into a ctl-helper package

We use ctl-helper on galaxy in the proxy control program.
Send port to proxy as Number, not string