LOADSA CHANGES

Well, if we ignore the 4 sets of identical XMLHttpRequest calls, this is
a lot cleaner.