Add minimal filtering APIs
These support the upcoming use-cases of retrieving a list of machines to boot-check (!ready_for_service) and the corresponding list of machines to advertise as ready for jobs.
It also adds a date filtering API for on-going polling.
Depends on !2 (merged)