Use class parameters

Use class paremeter in order to be useable with puppet3.
It breaks backward compatiblity, but this module isn't the most popular of ours, and we plan to use the one from puppetlabs.