Cleanup.
Changed segments to be slugs.
Separated slugs into 3 groups: slugs, controller_slugs and non_controller_slugs.
If the slugs are part of the controller's name, it'll be in controller_slugs, if not, it'll be in non_controller_slugs.