OC-11245 Refactor the EC2 integration test code

PBI details: https://tickets.corp.opscode.com/browse/OC-11245

@adamedx @muktaa @kaustubh-d