Major Rewrite

A number of aspects of the code have changed, mostly due to the JSONP
implementation and move away from XML files.