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.
no sorry, I used it to test something at one point and forgot to uncomment after I was done.