fixes #1571 added login and logout functionality to the database

which is used by the angular authentication directive also fixes https://github.com/ProjetDeRechercheSurLecriture/DyslexDisorthGame/issues/167