Refactor writting of offsets to sequence files

Refactor writting of offsets to sequence files into commit hooks
for additional behaviors. Also, added record partitions extention
point to enable addtional behaviors such as updating hive metastore.