Add application metrics to standalone master

This patch adds metrics for each application to the master. There is also a small bug fix in `JobProgressUI.scala` that I found when writing the patch.