#997 Created authentication module for handling unauthenticated AJAX requests