Switch to accepting JSON.
Output JSON.
Implement stub elections list.
Implement proper elections listing.