Move the hiera packages setup/install into another class

We have a similar functionality to install packages based on hiera configs. Unfortunately this conflicts with the module we use.

I think it makes sense to break it into a submodule and make it configurable.