refactor tests and create extendSingleton expectations
break out source to multiple modules
fixes for requires
rename wrap to cast
rename API wrap to cast()
refactorings and implementation for extendSingleton
API & test fixes
update docs
Merge pull request #3 from thanpolas/extendSingleton

Extend singleton