This replaces old resource API filter the new one based on new COSI feature to filter access to the resources. There should be no functional changes. Signed-off-by: Andrey Smirnov <andrey.smirnov@talos-systems.com>