Allow setting the theme using header metadata

I'd like to be able to set the theme using header metadata. How does this sound?