Fix up pf_localurl, implement pf_servername and pf_server.

This just helps reduce noise in parsertests, and exposes some tests which
were failing because {{SERVER}} wasn't found -- but should be failing for
other reasons (for example: bugzilla 46826).

Change-Id: I035bfcd84bc9f8fd7079a1179c1cc0d013ca0a88