common: convert docker ports
common: convert docker ports

Convert docker ExposedPorts to appc's []types.Port.

The Name field is taken from docker's port representation (e.g. "8080"
or "8080/udp") and port number and protocol are converted in the obvious
way. If the docker image doesn't specify a protocol, we assume tcp[1]

Also, support deprecated docker PortSpecs.

[1]: https://github.com/docker/docker/blob/master/image/spec/v1.md

appc/docker2aci,vishvananda/docker2aci,appc/docker2aci,OMWAVE/docker2aci,dgonyeo/docker2aci,pquerna/docker2aci,OMWAVE/docker2aci,dgonyeo/docker2aci,jumpstarter-io/docker2aci,iaguis/docker2aci,jsoriano/docker2aci,jsoriano/docker2aci,ChengTiesheng/docker2aci,mclarkson/docker2aci,jonboulle/docker2aci,vishvananda/docker2aci