Add environment variables

- Add APP_DEBUG (defaults to 0) to App Engine config
- Use APP_DEBUG for urllib2 debug configuration
- Set CURRENT_VERSION_ID on Heroku (App Engine sets it automatically)