Improve error handling in rCall.
Set four spaces in packages.json.
Add grunt and mocha tests.