Preload async data in middleware.js for inserting into store on client side
Preload async data in middleware.js for inserting into store on client side

Also moves the window.__data assignment into the head so that it happens before anything else.

scenario-generator/frontend,scenario-generator/frontend