Make flask's debug mode configurable.

We don't want to be using this in production.