Headings are now definable as objects with 'dependsOn'.

Fixes #62.