Add ability to return model objects by passing a modelname property (instead of a table) in the index config.