[SPARK-2458] Make failed application log visible on History Server

Modified to show uncompleted applications in History Server ui.
Modified apps sort rule to startTime base (originally it was endTime base) because uncompleted apps doesn't have proper endTime.