Include the domain name in the URL.

Because this data is sent out verbatim via the API, and so is not only
used internally. Per #192.
Move the typographical cleanup into the function

Previously this was in law.php.
Rewrap comments