Fixing and extracting Trac dependencies

-Trac filters and search options only show if trac enabled
-Chart only shows trac data if enabled
-Fix rollback migration of Trac

Signed-off-by: Gustavo Jaruga <darksshades@gmail.com>
Signed-off-by: Matheus Faria <matheus.sousa.faria@gmail.com>