LogOut is added.
The callbacks in the client side js files are replaced with promises.