Expose expvar endpoint during debugging.

Fixes #3017