allow trailing slashes in most URLs

Only the specific-ref and raw file endpoints won't allow extra trailing slashes, since they use actual filepaths.
Per Flask's defaults, URLs without trailing slashes will redirect to those with them.