Added AdamSparkCommand for pipelining commands

I added this trait so that we can pipeline several commands together while using the same Spark context and Hadoop Job config. I also updated existing commands to use the new trait, and checked them.