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

Can we set the "spark.ui.proxyBase" property in ApplicationMaster.scala's addAmIpFilter() so that
1. The code is more consistent
2. The if-else case here is reduced