Added pprof tools and exported variables via the /debug URL prefix.

Also added a handler for listing all goroutine stack traces.

Added unittests for all of the above.