Fully fixed the $logout() bug
Merge pull request #438 from firebase/jw-logout-fix-2

Fully fixed the $logout() bug