use npm development dependencies instead of test/lib
Add test rigs for RequireJS and CommonJS
common-js-ify!
fix CommonJS exports to pass tests