adding support for port ranges on --expose

Addresses #1834

Signed-off-by: Srini Brahmaroutu <srbrahma@us.ibm.com>
Seems like this parsing should go into a separate function?