Added maven support and small test cleanup

I have added the pom.xml file to support maven. I have not pushed anything to maven central yet, might be better to wait for a first release from @str4d .