use APP_KEY from environment if available for the secret key
Tweak some paths again.
Use environment options in database config.
Merge pull request #3132 from winglian/develop

use APP_KEY from environment if available for the secret key
Update value.
Make use of autoload-dev
Merge pull request #3187 from GrahamForks/autoload-dev

Make use of autoload-dev