Exporting out of Hive

These changes support an SDK that may be used to export the data out of
Hive. Currrently supports export to csv files.