Allow overriding the adapter with render option

Make it easy to use multiple adapters in an app.

use "adapter: false" to not use ams

make a test override config.adapter
Merge pull request #718 from ggordon/adapter_override

Allow overriding the adapter with render option
Fixes nested has_many links in JSONAPI

When linked resource had has_many links, all of them would use the
association from the first resource, causing all of the items to build
`links` with the same associations.

This fixes it by iterating over the serializers, not just the
attributes array.
Merge pull request #730 from rails-api/fixes-nested-has-many-links

Fixes nested has_many links in JSONAPI