Support config templates

Hey there, 
It would be nice to support config templates to be processed into the global config object, i.e. `<%= pkg. version %>`. This PR will add this feature. I also added one test for it. 

cheers
Andreas