Move bitpay into a new namespace and add some testing/trim some methods