Added ability to get list of deposits or a single deposit.
Also cleaned up and fixed several unit test.