Model for user-visible logs
Audit logs and log user actions to database.

User actions are logged to database to provide "your actions" view (not yet implemented).
All actions are tagged with public browser id (separate from cookie ID), that could
be used for error reporting etc.

Additionally, all audit events go to text based log files through logging.
Merge branch 'user-logging'