Introduce policy class containing the root scan closures. Reviewed-by: ehelin, stefank
Reviewed-by: jmasa, ecaspole