Support for maven project

Hi there! This looks like a very useful library. It might be nice to package it into a maven project so that other projects could use it as a dependency. The configuration for a bare bones maven project is not terrible. I've set one up with this pull request.