replace many warnings by $self->addbadmessage move some actions into the pre_header_initialize initialize routines so that the error messages appear properly at the top of the page. This commit may still have some bugs.
Changed paths: