Implement authentication, allow passing a classloader, cleanup pom

I'm using the library to build a Jenkins plugin https://github.com/carlossg/jenkins-kubernetes-plugin and needed to make some changes