[i18n] New .pot file generation script

The new script adds reference and context to the strings, identifies
them with more correctness and has blacklisting capabilities to ignore
strings that need no translation.

I'm unsure about the context that should be included with the strings, right now it's just the surrounding lines.
@hellekin @jaromil What do you think?