Expose external ports to application configuration.

Fixes #200.