Make the BitPay API code more Drupal-y and update it to more of what's in the latest official BitPay API release from github.