Revert "Port allocation for both priming server and tcp server now only happens through application config."

This reverts commit 0a3dcc4fa98f37cd39dfa685b4d967a1cb3f655e.