Slight refactoring and adding utilities to BaseCommand
Adding config (environment) management commands