Change the routing strategy to shallow nesting.

I changed the routing strategy among topic, post and comment to shallow nesting.