Using flask config, removed flask logic from cas module, invalid cas tokens redirect to /application