Support relation by foreign id

Currently relations are supported by searching `relationName` in `representation`

This hack allows building relations by using `relationName_id` or `relationName_ids`, as many Ruby on Rails engines return.