Fixed bug where audit records doc revision was being set to the previous revision. Modified revision navigation to use the audit history, so it can survive compaction. Issue: #415