Simplified basic object retrieval

The logic for getting all objects of a certain type, or an object by slug or id was abstracted away to the base Resource class.