There will soon be link massager plugins that apply this kind of processing
The idea is that the same commands will work on the server or the client, and that the client will be able to remotely run commands on the server. Also includes abstraction of the version number of TW5.
Thanks to pmario for pointing out the problem
See the readme for details