Debug flag value depends now on App Engine environment.
Debug flag value depends now on App Engine environment.

Patch by: Pawel Solyga
Review by: Todd Larsen
Review issue: 381
Review URL: http://codereviews.googleopensourceprograms.com/381

MatthewWilkes/mw4068-packaging,MatthewWilkes/mw4068-packaging,MatthewWilkes/mw4068-packaging,MatthewWilkes/mw4068-packaging