Moved data object into library's scope to allow for testing.
Moved all variables except _library to the library's scope so we can test stuff.
Broke up init into some smaller, testable functions.
Cleaned up extratDataArgs()
Moved and documented displayError() function.
Wrote tests for (most) functions.
Extracted out hardcoded hubWidget div definition. Now people can pass in whatever selector they want. Wrote tests for this.
Altered widget to work as a jQuery plugin.
Changed the API URL to be production instead of local.
Reorganized some files. Pulled out the init function so I can call that to initalize the tests.