Update pom.xml to be compatible with the new Sonatype OSS hosting
Add .gitignore and nb-configuration.xml (NetBeans code formatting configuration)
Update tests to use new JUnit annotations
Fix several unit tests which are broken on Windows due to newline differences