Switch to Gradle for dependency management.

Part of the move to a logging framework. Instead of downloading
individual library jars for inclusion, let gradle do all the work.