tools/release.js & minor and patch make targets

For issue #36
Let's put some comments on the if-branches here.