Reorganized invoiceutil.js into paymentutil and invoicehelper

 * Now checking tx category is 'receive' from bitcoind