Choose ports dynamically

ran grunt test.
Let me know if you can think of another way I can get the endpoint to the Promise.resolve in the start method (line 142 in same file)! I'm not too sure about this one.. Or is it possible that I just need one "data" variable that I can set once (and therefore just know that it should contain the endpoint?)