SPARK-1291: Link the spark UI to RM ui in yarn-client mode

can you use use Option(System.getenv("APPLICATION_WEB_PROXY_BASE")).getOrElse(System.getProperty("spark.ui.proxyBase")).getOrElse("") for this instead of  != null checks.

Also we should be using the SparkConf whenever possible and not system properties unless there is explicit reason