Switch build to gradle.
Update README to reflect new build system.
Rearrange directories to work better with gradle.
Make mongodb config a bit more generic in preparation for moving mongodb
config out of the code.