Java implementation

Checked in a first draft of a Java implementation. Before I update the documentation, I am looking into possibilities to have it published in the Sonatype OSS Maven repository.