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

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

You need to remove `otherCopyArgs` if you remove the second constructor.