Created nodeunit test suite from examples. Added additional required npm tasks