Allow for the keybase to be configured to override the implementation of the key that is saved to the keybase. Closes: #4941
* rename wire to codec * fix formatting and cli * fix the docs