Code review updates.
Merge branch 'tm-import' of github.com:zanata/zanata into tm-import
Refactor the writing of TMX metadata to the DB.