KNL-1051 Added unit tests and fixed up issues with the locale string parsing

git-svn-id: https://source.sakaiproject.org/svn/kernel/trunk@122249 66ffb92e-73f9-0310-93c1-f5514f145a0a
KNL-1043 Made score handling compliant with 1.0 spec

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