Removed track segment from api
Revert "Removed track segment from api"

This reverts commit 3d20c152da8e976f0d16db996db657fbe6b60864.
Moved interface out of api project