Added function to log audit entries, refined audit tables, added test app to generate data for audit tables
New audit functionality.