[SPARK-2169] Don't copy appName / basePath everywhere.

Instead of keeping copies in all pages, just reference the values
kept in the base SparkUI instance (by making them available via
getters).
nit: you could drop the `()`. See other getters in the next few lines. (here and other places)