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

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

If we only use this in Hive, perhaps we should call it `HiveCommand`.