Changed the middleware so that the app uses live data by default and mocked data when the query string  is appended to the URL.