Rework rewrite rules.

Add reseller id to rule set.
Align to new DT handling.
Remove DBIC handling.