Close account

Added a REST API call to close an account. It recursively will close all the child accounts first and finally transfer the funds to the account parent.
can we add a test for when there is spend in the account to be super cautious.