Fix transaction type bug. Credits were being treated like debits. Eventually need a better solution for this, possibly by using Breeze's enum support.