Bug 1035170 - Rewrite SWF parsing to a scan-first, parse tags on demand approach

Image handling is a mess right now, and I want to clean it up ASAP. This code will go away during that.