Generic abstraction for (file-based) resources, used throughout the framework.