Fix issue with login pages appearing inside the app (not properly redirecting on session expiry)

Adds an auth filter that returns a special error code when a user's session has timed out and the call was an ajax call.
Adds a global ajax error handler to force a page refresh to initiate the proper redirection to login screen (maintaining the session info).