FEATURE: Reverse proxy port can be set in `config.json`.

Warning: The format of `config.json` (or `config.js`) has changed.
They must include a `port` and a `sites` keys.

Impacted lines of code were also refactored.