Sync packages.flashmedia with upstream.
stream.hds: A few tweaks and fixes.

- Make use of a reusable buffer when serializing Tags
  by using Tag.serialize_into.

- Fix problem with audio getting out of sync in the event of a
  missing fragment by making sure timestamps are in sync.