Move static files to top of middleware stack