[FEATURE] Added support for Bitpay test environment

I've added support for using the [test environment supplied by bitpay](https://test.bitpay.com), as I am not able to use the production environment while developing on my machine.

Please review my changes, suggest any improvements, merge and update the npm module!

Hopefully this will be of help to some others :)