add support for background activities (see https://github.com/aouyar/healthgraph-api/issues/9)