update tagging script.

Changes:

Add pre|post tag merging
In the pre-tag merging, commits are displayed to the user for confirmation.
The post tag merge -s our happens automatically when all else succeeds.
Verify version and display warning when version does not end with (alpha|beta).
Replace $1 in functions with global variable for readability when the function works on the globals.