Add AutologinAuthenticationMiddleware and remove all other middleware/backend code.