Move parallel polling code to data/. Fix middleware: we can now ask for a single facet.