Moved DRF authentication to middleware (bug 965930)