Added requirejs support
Big rewrite
Comment debugging dump call
Fixed up failed unit tests
Added circular dependency unit test
Renabled test cases and added docs
Removed old reference to bases
Merge pull request #44 from circlingthesun/bug-fixes-and-amd-support

Circular dependency issue fix, RequireJS support, and other fixes.