Refactor writting of offsets to sequence files

Refactor writting of offsets to sequence files into commit hooks that
can be extended.  Additionally added record partitions extention point
to enable addtional behaviors such as updating hive metastore.