Bug 870171 - Part 30: Add PrunePolicyDatabaseStorage tests.
Bug 870171 - Followup: Remove unnecessary curEnvID code.
Bug 870171 - Part 31: Only attempt cleanup if we've just pruned.