Add support for automatic generation of translation (qm) files

Right now the files need to be included in the source tree.They don't
carry any extra information not present in the ts files and can be
automatically generated during build process.