Broken down the configs into separate files

Reduced the conditional statements in the wp-config.php file and used array maps in switching between different configs for different environments. 

Thanks for this!