Refactor apache cfg

Move any ruby logic out into objects and make the template just a printer