EndpointsHelper: render appId as safePath
GroupManager: assignDynamicPort, if port 0 is given
GroupManagerTest: add test cases for dynamic port