Fix finding Spark UI when running on Mesos.

Spark UI is on localhost when spark.master is set to a mesos URL.
Merge pull request #19 from david-resnick/spark-ui-with-mesos

Fix finding Spark UI when running on Mesos.