(PDB-2617) Add with-historical-catalogs-enabled
(PDB-2617) Add with-historical-catalogs-enabled

Add a with-historical-catalogs-enabled test macro that ensures that
historical catalogs are enabled as specified for the duration of its
body.  Then use it in historical-catalogs-storage-test to make sure we
revert to the original "historical catalog state" after the test.

puppetlabs/puppetdb,puppetlabs/puppetdb,senior/puppetdb,kbarber/puppetdb,kbarber/puppetdb,waynr/puppetdb,waynr/puppetdb,rbrw/puppetdb,mullr/puppetdb,waynr/puppetdb,rbrw/puppetdb,senior/puppetdb,mullr/puppetdb,senior/puppetdb,rbrw/puppetdb,rbrw/puppetdb,senior/puppetdb,puppetlabs/puppetdb,mullr/puppetdb,waynr/puppetdb,kbarber/puppetdb,puppetlabs/puppetdb,rbrw/puppetdb,mullr/puppetdb,mullr/puppetdb,puppetlabs/puppetdb,kbarber/puppetdb