Refactor topics controller

Refactor: 1) TopicsController to reduce code climate complexity.
2) Topic model, addressed comments

fix typo
Merge pull request #1559 from railsaholic/topics_controller_refactoring

Refactor topics controller and model