Updated XML and JSON GUI pages

Added experimental code to automatically determine the correct default
URL for the XML and jQuery GUI pages.