Add unit-test and Node api

Hi Andrey,

this pulling request add a NodeJS API for your project. I need this feature to create a grunt plugin.
Bonus: Travis and Coveralls implementation.

You need to create a Travis and Coveralls accounts, change Badges urls in readme and change Coveralls token in .coveralls.yml

Bye,
Mathieu