charmstore: simplify serving code

We can use method expressions now, and http.StripPrefix
makes the code simpler too, although the tests need
to be changed to account for the fact that the handlers
now mutate the request. The latter is worth doing anyway
though, IMHO, to prevent possible cross-test bleedthrough.