Separate out code that determines priorities to query so I can call it from a controller

Tests

Fix up all/package.xml

Avoid locking problem in tests by renaming kyou info custom setting record in one test