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.