Closes T2663.
What is working:
- Symlinks in directory entries
- Submodules in directory entries (interpreted as symlink to rev)
- Mounting revisions
What needs to be done:
- Add unit tests (done, but only very basic unit tests, i want to rework the test framework data generation in another diff and add more unit tests)
Related to T1926.