Convert libwallet to non-openssl hashing functions.

Rename determinisitc_wallet to electrum_keys to avoid confusion with hd_keys (bip32).
Break out hash-splitting function.
Source formatting.