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
Merge branch 'master' into mongo-master

Conflicts:
	gutterball/src/main/java/org/candlepin/gutterball/guice/GutterballServletModule.java
	gutterball/src/main/java/org/candlepin/gutterball/receive/EventReceiver.java
Fixing issues caused by rebase with master

Conflicts:
	gutterball/src/main/java/org/candlepin/gutterball/receive/EventReceiver.java
User ConfigKey for gutterball config properties.