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

I'm not sure if it's okay to do this. If we ever want to host multiple SWFs, we need unique IDs.