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

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

I will try, maybe we can add a rule to translate logical.XXXCommand to RunnableCommand in analyzer.