Add an API to query for applicability data, and some tests.