Add API for Topic resource.

 * Fix issues with TopicPolicy constructor.
 * Clean up a few actions on GroupsController.