Express middleware to serve single page applications in a performant and SEO friendly way