Update helper functions
Update helper functions

add "index" option to url2shortid.
Add searchOf and searchValueOf, for similar to pathnameOf.
Use these updated helpers throughout.

Signed-off-by: Nathaniel Clark <865dbb93f30fb195f09da9caf5665329e84a4b97@misrule.us>

utopiabound/redditp,utopiabound/redditp