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

Enabled HistoryServer to show incomplete applications.
We can see the log for incomplete applications by clicking the bottom link.
when you resolve the merge conflicts you should factor this out into its own method:
```
def isApplicationComplete(...): Boolean =
```
or something