Adding listpayments API.  Now is a good time to go work on the error handling before adding more functions.