Rails 4 support.
Fixing priority countries not being considered.
Removing duplicated priority countries.