internal/router: bulk metadata API implemention

We also fix all paths so that they start with / after splitting. This makes them compatible with the usual way that paths are specified in URLs.
splitPathTest does not assert returned "nextIndex" ... that 7 in the comment is fishy - please add nextIndex tests