charmstore/router: generate http.StatusNotFound appropriately

This generates messages (and error codes) as expected by the API specification.
there are three errgo.Mask(err) calls in lines before the comment ... should they be errgo.Mask(err, errgo.Any)?