First stab at Gradle-ing the tool and doing some basic cleanup, e.g.
replacing println with logger calls.