Dynamic index resources

patch for dynamically generate a list of all available resources when index is requested (and IndexResource is missing in the configuration)