implemented hls key auto-generation
fixes in hls encryption
added keys directory handling
read hls key from old playlist
make aes iv big-endian
fixed hls key path
renamed directives
fixed style
optimized aes128 encryption in mpegts writer
implemented key id recovery from iv
fixed encryption
fixed return code
zero fragments_per_key now means one key per stream
fixed path allocation