reorganized app config, added a mail view based on Flask Mail