The goal of this refactoring is to better encapsulate internals of the ecdsa library in a single module (in anticipation for removing that dependency later), and improve the general code quality.
The `ECKey` class is renamed into `ECPrivkey` and now inherits `ECPubkey`. The code of the ECPrivkey is massaged into a better shape.
The `MySigningKey` class, which is a wrapper around `ecdsa.SigningKey`, is now an implementation details of ecc.py, and is no longer used in transaction.py and unit tests.
This diff is a big chunck of what remains to be split out of D16301.
Depends on D16677