CDK-249. Hive partitions are not created in the metastore.

This is an updated version of https://github.com/cloudera/cdk/pull/28, with the necessary changes for Kite.

Regarding https://github.com/cloudera/cdk/pull/28/files#r8067500, I chose not to expose the Path since the code would need to know how much of the path to interpret as partition directories (also it would be filesystem-specific, which the current patch isn't).