Refactor to a near exact port of the officially supported Coinbase libraries.