Added DynSiteMiddleware and test