Serious corrections to library to account for bad tests.

Virtually all tests were bad, using `ok` instead of `equal`.  This has been resolved and the library has been corrected to work with Curl, Dojo, and RequireJS.