Try out getport. Refs #581.
Don't use getport if config.port is set.
Merge pull request #587 from mapbox/getport

Use getport