Add import i18n to federation/controllers.py

Also, added a test to check the branch where _() was being
used in federation/controllers.py.

Change-Id: Id5b957ad6d8d3a85a614d1bd55e2c0dadd7dbd04
Merge "Add import i18n to federation/controllers.py"