Backport much of the new altcointip bot code.