- fix bug in muxer when using decoders to remux (set global header flag)
- introduce Encoder::encode and Decoder::decode which makes it easier to
  write transcoders.
- Beginning transcoding test (but not fully working yet).