internal/router: implement PUT for meta endpoints

This also adds the notion of a multi-error, adding a new field to the Error
type.
Docstring? I guess this sorts elements by their JSON representation in bytes.