adding support for port ranges on --expose

Addresses #1834

Signed-off-by: Srini Brahmaroutu <srbrahma@us.ibm.com>
IMHO, at this point this code is not used by anyone else, if I do support -p option I would prefer to factor. What do you think?