Add primary_key accessors and updater to Entity

Closes #19.