Use object API for localStorage.user
Use object API for localStorage.user

`getItem`, `setItem`, and `removeItem` is a very awkward API, so use the
tradition object api

kentor/notejs-react,kentor/notejs-react,kentor/notejs-react