allow checkLoggedIn to send a json response for ajax data calls rather than redirecting
clean up dmNavigation librarySelected output