[FEATURE] Add method to fetch structure of a Sphinx project

Change-Id: I1ddd33a497fa4b5c81a6a02efbba5bf5f28452e5
Reviewed-on: https://review.typo3.org/29027
Reviewed-by: Xavier Perseguers
Tested-by: Xavier Perseguers