Prepare mods (Instrument device/platform device)

Adjusts IMS prepare methods to include grouping information for the AgentInstance associations which are dependent on Model selection.