fixed `where` documentation
fixed promises, fixed $applys so after promises, removed unused code
fixed recollect in user logout