Refactored port binding and Srch2Server (core) creation into a helper function.
Refactored port binding and Srch2Server (core) creation into a helper function.

SRCH2/srch2-ngn,SRCH2/srch2-ngn,SRCH2/srch2-ngn,SRCH2/srch2-ngn,SRCH2/srch2-ngn,SRCH2/srch2-ngn,SRCH2/srch2-ngn