KNL-1051 Fixed locales method to remove duplicates and added unit test to confirm



git-svn-id: https://source.sakaiproject.org/svn/kernel/trunk@122247 66ffb92e-73f9-0310-93c1-f5514f145a0a
KNL-1052 Fix issue with config registrations not being registered if they were read first

git-svn-id: https://source.sakaiproject.org/svn/kernel/trunk@122248 66ffb92e-73f9-0310-93c1-f5514f145a0a