extract fundtionality into a concern
add friendly_id gem compatability

The friendly_id gem overrides the finder for models to use a slug
instead of an id, so the params[:id] is actually a slug, and when
we do `where(origin_id: params[:id])` it's not returning a record.