Add Debit management based (but rewritten) on dragouf fork at github.
Clean-up unit tests