SPARK-1337: Application web UI garbage collects newest stages

Simple fix - please don't merge yet... need to add unit tests.