Extract linked resources to APIObject and use it everywhere

This allows schools, students, and teachers to use the same linked_resources functionality that was previously present only in districts.