Bug 1046301 - AppleVTDecoder: call DrainComplete. r=cpearce

Propagate changes from bug 1039128 and some other cleanup.
Bug 1046301 - AppleATDecoder: call DrainComplete. r=cpearce

Propagate changes from bug 1039128.