For a new player, if a unique ID webstorage key doesn't exist, use ajax to post to the server and return the new key, then save it as the unique ID webstorage key.
If not a new player just post to the server with the saved webstorage key.
This doesn't sound very secure to me, so hopefully someone can chime in with a way to lock this down.