Implement in-memory election

Implement server in-memory election, via global variables

Also:

- refactor some resources to avoid verbs in REST API
- add a single candidate to an election
- add again a name property to candidates
- define equality for candidates; mainly through their name
- refactor server tests with codes defined by requests module