Dynamic environment detection

Instead of hardcoding an array, I needed to change the environment detection so I could contribute to the project (if Im allowed to, of course :smile: )

The application was throwing up complaining about missing providers because of the local/app.php, so I deleted it and added Way's generators to the normal app.php file.

Instead of hardcoding local database configurations, I added environment variables, so the user wanting to contribute can just create an ``.env.local.php`` like this:

```php
<?php

return array(
    'DB_HOST'       => 'localhost',
    'DB_DATABASE'   => 'database name',
    'DB_USERNAME'   => 'username',
    'DB_PASSWORD'   => 'password'
);
```