DynamoDB improvements

- Added correct handling of booleans
- Hides the __metadata-records when querying.
- Fixes a bug where if a primary key was set on a field other than "id" the dynamodb adapter would get into an infinite loop and crash.