Delete actions and TopicController fixes

Added delete actions for Topics and Categories. Also, added layout for Topic and added function to obtain route for Topic's files.