snapshot of ec2 code

I'll need to review this to make sure everything is the right version and that I have not omitted anything critical.

I should also document use and structure.

But this gets us started.