Merge pull request #42 from fma2/translate-API

Translate api
Merge pull request #43 from fma2/translate-API

Translate api
Merge branch 'master' of https://github.com/red-spotted-newts-2014/translateYo into translate-API
Move code from controller to api model