[SQL] 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. 
Failed to render the documentation locally because of my local configuration issues. Not sure whether this renders properly. Maybe we need to quote them with `highlight`:

```
{% highlight bash %}
...
{% endhighlight bash %}
```