Add frontend <-> wallet extension commands.

This change adds support for the following extension commands:
- createencryptedwallet
- getbalances
- walletislocked