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

please add scaladoc and explain parameters.