Fixed ctypes/wintypes issue

The c_void_p and HRESULT are not accessible from wintypes in Python3.
This patch fixes the issue and it keeps functionality for Python27

Change-Id: I0a1c5d0770a66529528d1e2f7f1ba08368e53fe7
Add support for EC2 config scripts

The userdatautils plugin now supports EC2 formatted scripts.
It consists of multiple batch or powershell scripts enclosed
in specific tags, where the batch part is executed before the
powershell one.

Change-Id: Ic9b2c73838c606d3eeaf039363dbdf46313379ca
Fix tests mocking bug when doing regex search

Change-Id: I7a6d8b5e111884e2c3017df82bc447ba4e99905c