add election editing to the api
adding start and end election actions to the api and test cases for each