Get container ports from detailed info

The old method used to get port info only works if the container is
running; this method grabs the port info directly from the HostConfig
session, and is available even if the container is stopped. This avoid
the webui port not being correctly configured if the container did not
autostart with the array, and the private and public ports are not the
same.