Get user id by primary key name

If your `User` model has a different primary key (other than `id`), Revisionable wouldn't store that identifier. I've changed the `getUserId` function to look at the primary key, instead of assuming field `id` is the correct user id (and thus returned `null` if the field name isn't `id`).