Moved configuration and utility functions to their own modules. Removed Flask-Mail functionality.