patchutils.py: Implement algorithm to autogenerate #ifdef patches.
patchupdate.py: Ignore patch files which do not start with a number.
patchupdate.py: Move logic to extract patches into separate function.
patchupdate.py: Implement 'IfDefined' patch property to autogenerate corresponding patch.
patchupdate.py: Fix issue with generating IfDefined patches.
patchupdate.py: Add all autogenerated files to git after creation.
Added patches for CSMT support (not enabled yet).