The container and account auditors, and their tests are almost
identical. This patch reduces the code duplication by refactoring
into a base class called DatabaseAuditor.
This also means the container and account auditor tests have also mostly
been refactored.
Change-Id: I9765d65f12afec295d9eaae52858e4e7272c9c4c