Added API controller for searching topics
Refactored existing topic controller
Fixed some tests that were failing incorrectly