Unify REST resources to 'election'  and 'vote'

Create via POST and update via PUT
Complete client tests and implementation

Complete client tests and implementation, based on tests for the server
part. Also, introduce 'test' extra feature, and mock library for
doctests to patch the requests.