fix the logic for parsing ports/addresses
new tests for --bind handling
Merge pull request #23 from uber/fix_port_parsing

fix the logic for parsing ports/addresses