Converted tabs to spaces for consistency.
Fixed JSON errors.
I have to set this up as a JavaScript file, to allow cross-site requests.
The config file is a JavaScript file after all. Renaming.
Reimplemented external configfile support as a JavaScript file to be included
before the library.

The library will check to see if the JSON config object is defined. If it
isn't, it will fall back to default settings.