Modernise the MongoDB driver

Resolve compile time and runtime warnings about deprecation.
Change Groovy to Java.
Fix integration test failures.
Add PNG logo.