Updated kbaseLoginFuncSite to mirror kbaseLogin, except for using local storage and a test to make sure the locally stored token is still valid.
Auth errors no longer refresh the page, and logging out just takes the user to the login page.
Fixed an issue with cookies not being properly made to last a while (user could appear to be logged in and still not be able to access the narrative), and not removed on logout.
Merge branch 'master' into auth-fix
Merge branch 'master' into search

Integrating latest changes before merging search into master.