Added Grunt and npm configs. Fixed unit tests for net module.
Merge branch v2.0 of https://github.com/renyard/validity into v2.0