Choose ports dynamically

ran grunt test.
Should I take out the default host and port in the constructor?