Unix compatibility and unit test

Add also [grunt-release](https://github.com/geddski/grunt-release) to automate release.
So, just run `grunt release` to publish a new version.