Renamed AuditLog.classname to type and refactored AuditLogDetails too

Made some minor cleanups