Added flags in UI.

Improved flags management.

Fixed failing behat tests.

Removed flag when locale does not contain region.

Added flag mapping for locales without region.