Move common hiera bootstraping code into class

I've moved code that has been common to my repos node.pp into a
bootstrapping class so it's a bit more DRY. The bootstrapping class will
also trigger a apt-get update before anything else runs.