adds primary_key and has_id_property? methods
Merge pull request #458 from subvertallchris/primary_key

adds primary_key and has_id_property? methods