[SPARK-2410][SQL][WIP] Cherry picked Hive Thrift/JDBC server

JIRA issue: [SPARK-2410](https://issues.apache.org/jira/browse/SPARK-2410)

Cherry picked the Hive Thrift/JDBC server from [branch-1.0-jdbc](https://github.com/apache/spark/tree/branch-1.0-jdbc). 

(Thanks @chenghao-intel for his initial contribution of the Spark SQL CLI.)

TODO

- [x] Use `spark-submit` to launch the server
- [x] Migration guideline draft for Shark users
Rather than have this included in the `hive` profile, we should make a `hive-thriftserver` profile. I could imagine users who want to build with support for reading Hive data, but don't care about running a JDBC server.