Translation Memory functional tests

Tests: create, delete, import, clear, cancel clear/delete/delete after clear.
Update to data sql script as some tables have changed.
Merge pull request #196 from zanata/tm-edit-tests

Translation Memory functional tests