Add command-line option to show version only and exit

Adds -v and --version options to bitcoind (or Bitcoin-Qt) executable in order to print the version number and exit.

Currently the version can be discovered via -?, but that option gives a long usage message which isn't relevant if all you want to know is the version. (I can see sysadmins using this in scripts for leveling/upgrading bitcoind across multiple servers).