[SPARK-4449][Core] Specify port range in spark

In some case, we need specify port range used in spark, such as firewall.
@srowen, I am wondering if pass 0, will it give us a port out of the range? 
Here I want to limit all the ports used in spark to range ```startPort``` ~ ```endPort```