added grunt and npm stuff
ported tests to Nodeunit