internal/v4: add debug/pprof endpoint
Merge pull request #250 from rogpeppe/099-debug-pprof

internal/v4: add debug/pprof endpoint

This will make it possible to gain insight into how the server is behaving at runtime.

I've added a test for the endpoint that's most straightforward to test.
The others will need to be QA'd.

To QA, run the charmstore, then:

    go tool pprof http://$charmstorehost/v4/debug/pprof/heap
Add legacy statistics log type