internal/legacy: implement /charm endpoint

We use some of the tests from the old server.

Had to look how this h.v4.Id works again. nice mapping :)