Fixed urlshortener example.

In the new version we should specify the resource object containing the long url.
Removed the variable that was not defined.

Use `const` keyword for creating constants. Pass `SEARCH` variable value instead of `query` (that was not defined).
Check if there are items in response to avoid unexpected errors (e.g. `cannot read length of undefined`)
Merge pull request #265 from IonicaBizau/example-fix

Fixed two examples
Fix license in package.json to follow SPDX ID

See https://www.npmjs.org/doc/files/package.json.html#license
and https://spdx.org/licenses/Apache-2.0
Warn if installing on older Node.js version than supported

This will produce a warning when this library is installed on a system
with node.js version below 0.10.
Merge pull request #277 from Alaneor/lock-node-version

Warn if installing on older Node.js version than supported
Merge pull request #274 from Alaneor/fix-license

Fix license in package.json to follow SPDX ID
Add jscoverage support