Accommodate the possibility that the baseURL for a document will be appl...

...ewebdata: based and avoid stripping off the pertinent URL-likeness of it. (+1 squashed commit)

Squashed commits:
[23573a2] Fix formatting to quiet jake build errors.