fix logout logic in app.js and in forcetk.ui