Add plugin interface for database support
Remove agent and agent-related plugins
Normalise paths and names
Remove server test-cases