TOP-920: rework basic routing logic
Reworks the basic routing logic, moving the argument preparation into the device logic, rather than having it in the plugin logic.
This MR also only removes the routes it added, rather than clearing the routing table.