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.
The 7 in the comment is indeed fishy, but we do have tests for nextIndex (phrased to be slightly more readable by testing against path[nextIndex:] rather than nextIndex itself)