Add support for JSONSerializer.attrs.serialize for relationships

Currently, the `attrs.serialize` property does not work for `hasMany` and `belongsTo` relationships, so relationships are always serialized.

This PR supports the `serialize` property on relationships.
@ppcano can you add comments that will show up in the api/data docs for the website that explain the settings for `serialize` options?