Capture dynamic ports specified in container

- Adds AppDefinition.containerHostPorts()
- Adds test cases to GroupManagerTest