use Flask's config system

/cc @rajivm @dlindquist for code review