Pulled out some flask config into the config file.