Generic resource pool for managing resources.