Fix for WinRM error.

WinRM connection to the host fails when the host has no added the guest
under the trusted hosts. This fix will check a winrm connection is
available and the remote VM is enabled with WinRM.
Check New-PsSession errors.

Check the PowerShell Error Id to identify the type of error and exit when
the error is AccessDenied. To a retry for few times if the error is due to
timeout.
Check if Trusted Hosts are enabled.

Abort New-PsSession check if it returns for bad trusted hosts error id.
Add config for wait time
Merge branch 'winrm-error' into develop