Features/thrift 0.9.0 addressing issue #303.

Includes the commits done by @wuman for issue #291.
Upgraded Hive to 0.10.0-cdh4.2.0 and fixed the test for Hive and Pig on CDH4.