Unstable commit. Added a few fixes for old PHP versions, regarding slashes and json_encode/decode. This version seems to work well with audios, but it breaks on pdf files. The problem resides in json_decode returning NULL sometimes.