[api] Update ledger after withdrawals and deposits.
[tests] Added tests for deposits and withdrawals.
[resources] Added new field to ledger
[dist] Add request module
[refactor] Use debug library for console logging. Improved logging messages.