Add authorization for Topic resource.

 * Add `arel_helpers` to make querying easier.
Add API for Topic resource.

 * Fix issues with TopicPolicy constructor.
 * Clean up a few actions on GroupsController.
Merge branch '1-topic-api'