Header & Footer Action Hooks

This commit adds header and footer actions hooks which makes adding
template functionality via plugins much more versatile.