Bug 960509, Bug 960674: Refactor rhc-list-port

Use associative arrays to prune duplicate binding entries. Support a
new '--local-only' argument which skips scanning the environment for
remote bindings (such as databases).