Add a define to create config files

(This is the same pull request than #695 (https://github.com/puppetlabs/puppetlabs-apache/pull/695#issuecomment-39556588). I don't know why and how, but I have closed that trying to rebase and squash.)

I have added rspec tests.