srm: Various minor refactorings

These things were originally part of the unique TURL patch, but are
not directly a consequence of using unique TURLs.

Target: trunk
Require-notes: no
Require-book: no
Acked-by: Paul Millar <paul.millar@desy.de>
Patch: http://rb.dcache.org/r/6646/