Refactored and cleaned up XPlatform

Cleaned up all files and functions not needed.

Made the only available function for URL mapping the URLForBase and
URLForScript

Cleaned up and refactored all other XPlatform files which use the old
URLFor… Methods