Pagination now gives total. Broke API for ledger, now returns an object with total: and results: instead of just an array of results
Added function for balanceAfterTransaction
Changed balance to use pagination as well through the aggregation pipeline.