Allow proxy to be passed as a param

This PR adds $proxy as a class param.
That way the proxy can either be passed directly to the class or can be set via Hiera.

The advantage is that the module no longer needs to be edited to use a proxy, thus allowing easier upgrades to the module.