Translations:Manual:$wgServer/23/en

Added code to dynamically work out protocol. Used a sensible default when running from the command line.