Migrate server/rules handling to new DT mechanism.

This fixes searching and sorting for servers and rules.