Add easymock to POMs
Add easymock to SBT configuration.
Refactoring to DAGScheduler to aid testing
Add DAGScheduler tests.
Clear spark.master.port to cleanup for other tests