Per host scheme

New PR to implement the ability to set the host scheme per host instead of having one global setting.

This also fixes the unittests with Django 1.5