Update Apache 0.10 codeline with Pentaho changes

To get a working Hive JDBC driver for Apache 0.10, we had to fork from the Apache 0.10 branch and apply the changes we made to our 0.7 branch.