js/search: Define a URL base prefix
Change record URLs to /r/:id
Implement 'id' query tag

This is an "invisible" query tag, in that we don't actually use it as a
user available search term, but it will be useful for looking up
individual records.

Issue #251.
Merge branch 'issue/251'