Wallet

Wallet branch mostly complete, will add some testing changes to it later.
Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.