Tests for charset in Content-Type

Added response factory as a parameter to patcher so that it returns
proxy response instead of a magic mock
Tested secure and unsecure host replacement
Refactored tests and factory to work with Python 3

Had to refactor tests to work on both Python 3 and Django 1.6 besides
Python 2 and Django 1.7