Add Npm task with proper unit test

Hello,

I've add Npm task with proper unit test, very similar to bower task but with less options.

There was a problem with `tests/_bootstrap.php` because it doesn't include composer `autoload.php`.
I've added it locally but didn't include it in this pull request, do you want me to include it here?

Thanks.