[SparkSQL, Thrift] SPARK-4700: Add HTTP protocol spark thrift server

Add HTTP protocol support and test cases to spark thrift server, so users can deploy thrift server in both TCP and http mode. 
The `${...}` wrapper is not needed in this line as well as the line above. It's safe to use double quotes within `"""..."""`.