Provide support for hiera rules as proposed in issue #54

Hi,

I noticed that pull request "Added support for hiera rules configuration #54" doesn't show momentum anymore.  Therefore I tried to implement the changes you proposed there  in order to have the feature proposed by fabiorauber.

Kind regards,