Added error reporting and configuration file

You can now config the script to work though one file instead of going
though the code one by one, this allows for quick installations to
servers or scripts. I have also added an error reporting feature which
can be turn on or off though the config.php file.