Refactor tests
Update sanitize language codes in models
Remove logging fallback import
Remove obsolete form factory overrides

 * Remove obsolete factories for multilingual forms.
Refactor core to work with Django 1.6

 * Introduce `TranslationRelation` relation object to handle translation
   logic.
Update flatpages