Avoids N+1 query when loading origin records. Partly address #18.
Merge pull request #23 from mezis/avoid-n-plus-one-queries

Avoid N+1 queries