Reformatted startUp.as to something none-awful

Also moved the image fixup code into the image manager, added a member
to the manager for the stage rather than relying on a global.