Added credit API class and test

Fer, I'm sending you the credit API. Please merge it in the Xapo repo. If you find any error or improvements please let me know.