Changes to enable reading DefineBitsJPEG4 and DefineFont4

Some debug code all over the place too. Unsure if this code is any
good, as3swf is much much higher quality - might port it directly.