Add new findObject method that takes in the class and key of the object;
not essential since we can do the equivalent in the API plugins, but
would mean more can be delegated to core at some point