Cleanup includes() and functions()
Cleanup extensions() and headers()
Cleanup defines() and phpini()
More code cleanup
Clean up the _config() function.

Remove the ternary because I find them harder to read. Switch
to a normal if/then