[SPARK-2783][SQL] Basic support for analyze in HiveContext

JIRA: https://issues.apache.org/jira/browse/SPARK-2783
We'll need to coordinate this with #1746.  The only problem will be deprecation warning though, so I'm okay fixing it up in a follow up PR.