ec2: Use S3ImageMapping object

Use the S3ImageMapping in the EC2 API to remove the last bit of direct
db API usage.

Part of blueprint convert-ec2-api-to-use-nova-objects.

Change-Id: I7d66a4d05f42ffd854afe21024c88b096aeaaeaa
Merge "ec2: Use S3ImageMapping object"