Load environment in the :environment task and not unconditionally

This should fix #560 if all tasks that need a loaded environment to depend on it.

Open:
- [ ] Check whether all tasks that do DB migration and things do load the environment properly.