Change audit log threat level to simple average and allow it to be overridden by THREAT_LEVEL numeric field value.
lua: Add an example lua module to calculate threat level.