* Implement segments endpoint controllers
* Refactor endpoint controllers to be based on capabilities
* Add saved_segments feature flag check
* Fix issue when querying all segments on Growth plans
* Validate segment
* Refactor naming to permissions
* Add some permission based tests
* Give more info to compiler about expected args shape
* Implement centralized permission checking module
* Refactor to conventional rights validation
* Update tests
* Add name and segment_data length and filter depth validation
* Refactor route names and add tests for FF check plug
* Refactor mixed segments query name
* Remove inconsistent strict not equals
* Use a different format for result is Map case
* Remove newline between spec and def
* Fix issue with too deep nesting
* Verify in tests that segment is actually removed/not removed from DB
* Fix typo in fn name