Fixed bugs including: view reduce function, audit history path. Issue: #415
Integrated auditing into data_records. Issue: #415