Making java module a maven project.

Contains the following changes
- Created a new package name
- Minor code refactoring
- Maven goals to enable release (eventually) to maven central. This will
  require some more documentation and will come with later commits if
  this PR is accepted.

I'm able to help with additional pull requests and also to help get this on maven central if there is interest.