Add id to the api_repr for elections.

We need this to be able to construct links back to elections from fedmsg messages.