Added the first version of the code. The account manager seems to work. The session has not been tested yet.