tools/release.js & minor and patch make targets

For issue #36
Some jsdoc would be helpful to read :)