Honor primary_key option in $belongs_to

Fixes primary_key support when using belongs_to relationship (#364).
Merge pull request #2 from tuupola/364-belongs-to-primary-key

Honor primary_key option in $belongs_to