DNM: File filter speedup

When a project has a lot of resources then a lot of regular expressions are used in order to detect the list of translation files in project's directory. We create a deterministic finite automaton that speeds up the detection process considerably.

@diegobz Please review this but consider this as a very early implementation.