Expose external ports to application configuration.

Fixes #200.
Is there some reason we care about the latter case apart from the fact that we haven't implemented it yet?