jenkins.sh bootstraps buildr for jenkins tests.

Assuming rvm is available, create a rvm gemset
and 'bundle install' to get a working buildr
env. Provide a way for jenkins to pass
build variables.
Build java Event objects from received ampq messages

Created a EventJsonUtil to build useful java objects from
event json.  This should be helpful for events stored in
mongo as well, if we need to pull them out again.
Merge pull request #647 from candlepin/ckozak/read_events

Build java Event objects from received ampq messages
Initial hookup of mongodb

- Can inject both the main DB and MongoClient seperately
- Created EventCurator that actions on an 'event' collection.

NOTE: Integration tests will be against a live DB due to the fact
that supporting in-memory test libraries for java mongodb do not
implement all features of the java driver.
Persist events via curator
Fixing style issues
Fix broken Event.getTimestamp()

Candlepin events store dates as long. Do the same for
a GB Event for the time being. Perhaps we can transform
this to an actual date later.
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
Test config properties used when creating mongo client and DB.
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