refs #4691 use chai instead of expect.js, run tests by default only in PhantomJS, added missing node modules