Updates to enable easier creation of derived CLIs

Updates made while trying to get DNS CLI up and running:
* CLI exposes client access and wallet key unlocking to derived classes
* CLI can import hex private keys for PTS/BTC/BTS addresses
* Fixed bug where chain server did not load genesis transactions if there were less than 256 of them