add phantom to package.json
add '.cmd' extension to test when windows
extend timeout on test
merge lib into base