Clear bookshelf on logoff

The code should almost be self-explanatory and has already been pulled on stable (lyt-2.0.x) in #612