[Application-UI] Reporting waiting stages on the UI.

    Getting the information of pending stages (i.e. yet to be submitted or they have missing parents)
     and showing them on the UI gives an intution about how long job might take to finish.

Addressed review comments. Removed a stray logging and renamed variable.
A new event for Spark Listener to report change in waiting stages and sends the list of waiting stages.