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

JIRA: https://issues.apache.org/jira/browse/SPARK-2783
Do we need to be concerned about concurrent accesses to `tableParameters`? More generally do we need to somehow synchronize on `MetastoreRelation#hiveQlTable` in various places?