Add new query method

My previous change (indexName) isn't enough to make the query respond to indexes. AMZ redesigned the query API in API version DynamoDB_20120810. It's pretty different, not sure what the best way to move forward is, but here is a patch that implements the new query API.