Add USE_SSL Flask config variable to turn on/off SSL instead of only app.debug

fixed self.app ref