Facia tool: detect auth state in ajax

...and redirect to login when not auth'd.