Added primary, secondary location logic to user_branches, removed priority setting in branch_managers and regional_managers.