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

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

Lets add some Scala doc:

```scala
/**
 * A logical command that is executed for its side-effects.  `RunnableCommand`s are 
 * wrapped in `ExecutedCommand` during execution.
 */