Add the concept of a root to the thread directive

This special cases the threads that are styled as cards rather than
replies and allows them to be styled accordingly.