Stop SparkListenerBus daemon thread when DAGScheduler is stopped.
Converted JobScheduler to use actors for event handling. Changed protected[streaming] to private[streaming] in StreamingContext and DStream. Added waitForStop to StreamingContext, and StreamingContextSuite.
Added waitForStop and stop to JavaStreamingContext.
Merge remote-tracking branch 'apache/master' into error-handling
Fixed bugs.
Remove simple redundant return statement for Scala methods/functions:

-) Only change simple return statements at the end of method
-) Ignore the complex if-else check
-) Ignore the ones inside synchronized
Merge branch 'master' into remove_simpleredundantreturn_scala
Fix accidental comment modification.
Setting load defaults to true in executor
Fixed bugs to ensure better cleanup of JobScheduler, JobGenerator and NetworkInputTracker upon close.
Remove now un-needed hostPort option
Removing mentions in tests
Merge pull request #392 from rxin/listenerbus

Stop SparkListenerBus daemon thread when DAGScheduler is stopped.

Otherwise this leads to hundreds of SparkListenerBus daemon threads in our unit tests (and also problematic if user applications launches multiple SparkContext).
Merge pull request #396 from pwendell/executor-env

Setting load defaults to true in executor

This preserves the behavior in earlier releases. If properties are set for the executors via `spark-env.sh` on the slaves, then they should take precedence over spark defaults. This is useful for if system administrators are setting properties for a standalone cluster, such as shuffle locations.

/cc @andrewor14 who initially reported this issue.
Rename DStream.foreach to DStream.foreachRDD

`foreachRDD` makes it clear that the granularity of this operator is per-RDD.
As it stands, `foreach` is inconsistent with with `map`, `filter`, and the other
DStream operators which get pushed down to individual records within each RDD.
Changed StreamingContext.stopForWait to awaitTermination.
Merge remote-tracking branch 'apache/master' into error-handling
Adding deprecated versions of old code
Address code review concerns and comments.
Disable shuffle file consolidation by default