Fixed 3 bugs that caused UI to crash (including SPARK-810).

One bug caused the UI to crash if you try to look at a job's status
before any of the tasks have finished.

The second bug was a concurrency issue where two different threads
(the scheduling thread and a UI thread) could be reading/updating
the data structures in JobProgressListener concurrently.

The third bug mis-used an Option, also causing the UI to crash
under certain conditions.
Attempt to fix bug reported in PR 791 : a race condition in ConnectionManager and Connection
Change line size
Refactored SparkListener to process all events asynchronously.

This commit fixes issues where SparkListeners that take a while to
process events slow the DAGScheduler.

This commit also fixes a bug in the UI where if a user goes to a
web page of a stage that does not exist, they can create a memory
leak (granted, this is not an issue at small scale -- probably only
an issue if someone actively tried to DOS the UI).
Style fixes based on code review
Style fix: removing unnecessary return type
Only print event queue full error message once
Shortened names, as per Matei's suggestion
Merge remote-tracking branch 'origin/pr/792'

Conflicts:
	core/src/main/scala/spark/ui/jobs/IndexPage.scala
	core/src/main/scala/spark/ui/jobs/StagePage.scala
Merge pull request #795 from mridulm/master

Fix bug reported in PR 791 : a race condition in ConnectionManager and Connection