added getversion command

In response to https://github.com/spesmilo/electrum/issues/342