Create explicit Locations.

Part of STUD-1030

I am leaving URL forms alone-- is that OK? They seem to exist mostly in tests, for places where a serialized version of a Location is expected.

@dmitchell Here is the 2nd one to review. It contains the rest of the change (common and LMS).