Major refactoring of messaging system and audit database.