refactored nginx/haproxy port acquisition to use new code we use for dev_appservers
merged with org/master
Merge pull request #774 from shatterednirvana/nginx-haproxy-port-reuse

Nginx / haproxy port reuse