[SPARK-2594][SQL] Add CACHE TABLE <name> AS SELECT ... (Updated as per review comments)

Updated as per the review comments of Admin.
Previous pull request is https://github.com/apache/spark/pull/2381
Hmm, I guess you probably rebased to an older version of master? We definitely shouldn't revert `AddJar` support here.