First draft of script to mass load data for performance testing.
842450: Fix newline issues in candlepin translations
Merge pull request #37 from candlepin/dgoodwin/perf-dataload

First draft of script to mass load data for performance testing.
Renaming method for getting owners of active products.
Merge pull request #41 from candlepin/awood/method_rename

Renaming method for getting owners of active products.
Add API method to refresh pools for owner of specific products.
Merge pull request #42 from candlepin/awood/refresh_pools_for_product

Add API method to refresh pools for owner of specific products.
Bind a LoggingConfig here so we set log levels for tests
Add ability to remove a cert from the certificate revocation list (CRL).

Quite a bit of refactoring had to occur and a few bug fixes in the process.

* CrlGenerator:
  * Renamed updateCRL to syncCRLWithDB
  * removed createCRL() which was useless
  * added removeEntries(X509CRL, List<CertificateSerial>)

* CertificateSerialCurator
  * added listBySerialIds method

* BouncyCastlePKIUtility
  * added warning suppression because of all the YELLOW warnings

* CrlResource
  * new unrevoke() method that takes in a list of certificate serial ids

* CertifiateRevocationListTask
  * simplified the logic a bit: readCRL, sync, writefile

* CRLFileUtil
  * broke apart the updateCRL method into more meaningful methods
  * added X509CRL readCRLFile(File) to read in the contents of the
    existing crl (or return an empty one)
  * added byte[] writeCRLFile(File, X509CRL) which will write the given
    CRL to the given File and return a PEM encoded copy of the CRL in
    case the callers needs it for any reason.
Merge pull request #43 from candlepin/alikins/log_level_for_unittests

Bind a LoggingConfig here so we set log levels for tests
remove ownerinfo.poolNearestToExpiry; it's not used.
ownerinfo: use pool.getProductAttribute rather than the product adapter

Hitting the product adapter is expensive. use the attributes copied onto
pools rather than querying the product directly. With ~350 pools this
takes the ownerinfo call from 8s to 0.8s on my workstation.
ownerinfo: replace pool iteration with hql queries

Ownerinfo is used by a number of web front ends to display 'dashboard'
type info. As such, it has to be fast, so we don't slow down that
initial page.

Rather than iterating over each pool that an owner has access to,
which will slow down as the owner gets more pools, use a series of HQL
queries, which are instead bounded by the number of consumer types and
product families. These values should be much smaller, and change less
often.

On my machine, with 100 test consumers and 350 pools, the call takes
0.25s instead of 1.5s.
Merge pull request #45 from candlepin/jbowes/ownerinfo-perf

ownerinfo performance improvements
remove FileUtils.cp calls used for debugging
change log.info -> log.debug
change serials -> serialIds
Merge pull request #44 from candlepin/removecrl

Add ability to remove a cert from the certificate revocation list (CRL).
Add null check for Entitlement.getProductId

Running unit tests with debugging on could trigger
a NPE when stringifying empty Entitlement
851512: add certs_rw and candlepin-ca.certs file context

Add file context for certs directory, and r only
for the candlepin-ca.crt/key for katello/httpd
to use.

Ghost candlepin-ca.cert for selinux contexts so
we own that file