mavenized the build

Releasing this library to maven central would greatly enhance usability for maven projects.
mavenized the build as first step.