Add Go version.

The Go version of the code can cope with encrypted private keys.
Merge pull request #2 from agl/master

Add Go version.