Changed ask-passphrase logic

* gPassphrase in context.go
* helpers in context.go
* calling AskPassphrase from before.go sets gPassphrase