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.
I had just comments to as extra info. but it's removed now.