SPARK-829: scheduler shouldn't hang if a task contains unserializable objects in its closure.
Scheduler code style cleanup.
Added comments on task closure serialization.
Moved non-serializable closure catching exception from submitStage to submitMissingTasks
Merge pull request #727 from rxin/scheduler

Scheduler code style cleanup.