internal/v4: implement debug/status endpoint
minor fixes for review
Merge pull request #109 from rogpeppe/050-debug-status

internal/v4: implement debug/status endpoint

As newly documented in the charm store.
Not all entries are implemented yet.