Implement wallet import/export to JSON (resolves #66)