Adding middleware to handle protected routes for none Basic Auth, updating deps