Configurator tests

Fairly large overhaul of Apache configurator in order to allow for effective unittesting.  The unittests aren't complete, but this includes a fair start.  I would like to get this merged with master so that everyone can work with the same code.  I will then continue to go for 100% unittest code coverage for the configurators.

I believe I only added one new public function (get_version()) which does contain a unittest.

Comments are welcome.