Headrest mechanisms