Moved the qemu/apply_patches.sh to the common scripts directory and refactor it so that it can be used as a generic and consistent way to apply patches. Fixes #1014 Signed-off-by: Wainer dos Santos Moschetta <wainersm@redhat.com>