Expose expvar endpoint during debugging.

Fixes #3017
Merge pull request #3018 from pnasrat/3017-debug-expvar

Expose expvar endpoint during debugging.