extract payload support by a3955269

Merging a3955269 changes (with his acknowledgment)
https://bitbucket.org/a3955269/galaxys2_kernel_repack/overview
Merge pull request #6 from PhilZ-cwm6/patch-1

extract payload support by a3955269