And adding such functionality to any template is very easy. Simply add
<?php tpl_include_page('whatever_pagename') ?>
in your main.php where you need the custom header/footer/etc to be. It will automatically work per namespace the same as the sidebar in the default template does (because it uses the same function).
Some templates like the "arctic" template and others support this kind of thing out of the box.