Translation web services refactoring

Needed for translation aids api. Note that old code is kept in
utils/TranslationHelpers.php - it will be cleaned up later.

Change-Id: I683d26170ed64fb70effbf4b03764646a313cf3d
Merge "Translation web services refactoring"