Rearrange

Moved the code block for Web Apps to be higher in the list so the
insertion of the Web Applications in the XML would be higher.