Expose external ports to application configuration.

Fixes #200.
`IGearClient.add` says that `ports` is a `list` or `None` but this will only pass a `frozenset`.