Move Autotoc template code on its own

Modularizing the templates should make easier its overriding.
Add CSS support for title buttons (silverstripe-project)