Rework settings

- Use function to configure LOGGING
- Use secure defaults in default.py.  This simplifies the env settings.