support for setting server port to 0 (with test)

Small fix to allow setting the server port to 0 in the config. The system will pick an open port to use.