started rewrite, added mocha tests and grunt to watch files