Consolidating setup.php into index.php and improved error responses.