Bug 870171 - Part 15: Add attemptPruneByDuration.
Bug 870171 - Part 16: Add attemptPruneBySize.
Bug 870171 - Part 17: Add pruneEvents.
Bug 870171 - Add pruneEnvironments.