Election based api view

This makes the data returned by the API more user-friendly. The information for each candidate id is grouped by election, except for name and address which doesn't change often. This addressees #42.