Changes for an initial npm package release

Some changes has been done in order to prepare for a npm package release

* test.js using r2.js renamed to testr2.js
* test.js has been created including tests related only with r2pipe
* pacakage.json added
* Readme.md has been updated