use local storage for anonymous preferences
Replace API's preference with localstorage preference when user is not logged in.
This prevents anonymous user's preferences overriding each other.
Related to icat-plus#561 (closed)
Edited by Mael Gaonach