Two compatibility fixes:

- Use $(document.body) everywhere instead of $('body') because the latter will select <body> elements within SVG <foreignobject> elements, which is never what you want.

- Don't assume the environment variables are defined at import time. Default to acting like the developer/testing environment if the production environment is not found.
Merge branch 'master' of https://github.com/kamens/gae_mini_profiler
Merge branch 'bslatkin-master'

The code has changed since this patch came in so I carried forward its
spirit by updating newer os.environ["SERVER_SOFTWARE"] accesses it
didn't account for.

Conflicts:
	profiler.py
	static/js/profiler.js