Change elections new/in_progress/done to functions
Change elections new/in_progress/done to functions

shirlei/helios-server,shirlei/helios-server,shirlei/helios-server,shirlei/helios-server,shirlei/helios-server