Many upgrades, and testing code
Added Electrum wallet support and public key compression/expansion