1121674: Persist new entitlements to the database before post-ent

The source entitlement was getting an ID set when it was flushed
at a random point (because it was added to pool and consumer).
This didn't always occur before we needed to read the entitlement
ID in order to create a SourceSubscription entry with ent.id as
subkey
Move configuration code into common project.
Move logging servlet filter code to common project.
Set RequestScoped to TestScope.EAGER_SINGLETON for tests.
Move LoggingFilter into common project.
Clean up warnings in LoggingFilterTest.
Remove use of StandardCharsets as it is Java 7 and up.
Move copied dynamic filtering code into candlepin-common
Merge pull request #643 from candlepin/awood/commonize

Move common code (like the logging filter) into the "common" project.
Merge pull request #648 from candlepin/ckozak/bind_transient_value_exc

1121674: Persist new entitlements to the database before post-ent
Add sql comparison URL to README
Convert Qpid set-up script to use openssl.

Using openssl allows us easy access to the certificate and keys as
they are left as files.  Accessing them from the NSS database is
significantly more cumbersome.