Serving content to IoT devices with a headless CMS