Add :dependent => :destroy to topic subscriptions and views

If you use foreign key constraints in your database then it is not possible to delete a topic, since rows in other tables depend on the topic. 

This commit adds :dependent => :destroy to topic subscriptions and views which makes it possible.