Renamed middleware.dart to something more sensible