Fix test names
Fix deprecated warnings
Refactor core to work with Django 1.6

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