Simplified route.index function names
Simplified route.topic function names
Removed unused namespace
Simplified repository.topic function names
Moved topic id generation into repository
Made id functions private
Introduced repository topic get-all function
Formatting
Made topics map private
Moved function
Formatting
Extracted set-next-id function
Aliased resource
Simplified resource.topic function names