Update .pot generation script

The new script is much less repetitive and does a much better job.
* No more repeated strings
* No more strings broken because they have double quotes (`"`) inside.

It uses a bunch of tools (standard tools found in every linux system), so I documented it.

I'd like somebody to review it before merging, just in case I missed something.