Make AuditTrail use an ActiveRecord association to expose and build audit events
Fix Mongo backend to match new API.