environment detection, environment-dependent configs, reduced index.php with simpler autoloading