initial improt of source code for generic mock ec2.