_port completion enhancement

These commits provide even more power to port completions, a better caching policy and more documented completions. The completion function should be faster, too, as I eliminated some extra pipes to awk and sed.