Insert support in hive connector

Replacing previous PR (https://github.com/facebook/presto/pull/1433) with this. This has changes ported to new insert api
Using `ThreadLocal` is hack. We shouldn't use it in unit tests like this.