Clean up audit trail code

- Make a version object with helper methods