EC2 Windows Bootstrap patch: Added function to check for winrm readiness

Prior to this patch, windows bootstrap attempts failed because it prematurely tried to run the bootstrap sequence when WinRM wasn't ready to accept commands.

This patch adds a function to ensure that winrm can successfully run commands before proceeding with bootstrapping.