contents: Add URLWrapper.__repr__

This makes it easier to troubleshoot collections of URLWrappers, because
printing the collection will give you something you can actually read ;).

This pulls commit 2c007b1 (the 8th) off the bottom of #671.  You may
want to apply it after #768 to preserve #671's ordering.