Globalize $clear and $headers

This allows templates and others to add or remove meta information at any point. Maybe the variables should have better names now.