fix sse authentication error cases
update event source and add onerror with status handler
add onerror handler to redirect on unauthorized status
add redirect to index when 401 status is returned