Fix handling defaults for httpd when no config file exists.

This also standardises/improves the interface to getting items from a section.