Update middleware.py

Add LOTAuthenticationMiddleware which allows clients to authenticate by passing their UUID in a request header.