Added unit tests using nodeunit, rewire and sinon; Gruntfile added for watch support