Reorganized a bunch of <IfModule statements.

Reshuffled a bunch of the <IfModule statements to the top of the file
purely for aesthetic purposes.