TableOfContents uses events map

Dependency: https://gerrit.wikimedia.org/r/181734
in Mantle extension

Change-Id: I6e1c90a6db8be9235ac6cb9ff74375e196498337