CommonTestCase: add put() method

Also did some refactoring
 - refactor _open(), get(), post()
 - move HTTP class to CommonTestCase & rename is to HTTPCode
done PUT /polls/:pid/choices

 - test: test_put_poll_pid_choices.py