Remove trac dependency

Remove trac from interface, search indexes and filters if it is not active.