Support  meta refresh tag.

This is essentially an updated take on the (now quite old) changes in #366.