Implement {{content-for 'head'}}.



Closes #2118.