internal/v4: implement debug/status endpoint

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

Please add comment describing its purpose.