Use mock library in test_httpd set.

All tests pass in Python 2x but fail with 3x strings.
Move @patch decorator to setUp method in test_httpd.
Run ert test per every python version with tox.
Encode all requests strings by default.

This make test_httpd pass on all python versions :)