Fix variable names for relationships in related view.
Use SchemaInfo class in get '/:class/:id/:related/list' route.
Add primary_key method to ClassInfo class.