Make listening port for examples to be settable.

This will be better for our own internal tests.
Merge pull request #7 from matttproud/feature/setable-ports-in-examples

Make listening port for examples to be settable.