[SPARK-4861][SQL] Refactory command in spark sql

Remove ```Command``` and use ```RunnableCommand``` instead.

Its a little odd to have a var named `sc` that is not a `SparkContext`, also I think we should try and eliminate this since we get the SQLContext in the run method.  Can we just move `metastoreRelation` into the run method?