fix for root accounts without a custom turnitin pledge

fixes #CNVS-2608

test plan:
- create a course with turnitin on a root account
- make sure the account doesn't have a custom turnitin pledge
- as a student, submit a turnitin assignment
- it should work

Change-Id: Ic4f328ea4cc9e7d985fd15f3cb219f164a3048e1
Reviewed-on: https://gerrit.instructure.com/16629
Reviewed-by: Simon Williams <simon@instructure.com>
QA-Review: Simon Williams <simon@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
Fix importing an outcome into a rubric

The points and description were not getting filled in properly, so were
lost when saving.

Fixes #CNVS-1272

test plan:
1. On account level create Outcome with custom description and values
2. Import Outcome into course
3. Create rubric in course
4. Add outcome as criterion in rubric
5. Verify the points and descriptions for the ratings are correct
6. Save the rubric, reload, verify they are still correct

Change-Id: Iba1313cae77be23a8ac588c9b40f54450ddeb291
Reviewed-on: https://gerrit.instructure.com/16644
Reviewed-by: Simon Williams <simon@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
QA-Review: Brian Palmer <brianp@instructure.com>
use a shard-safe query for selecting question bank questions

refs #CNVS-2641

Change-Id: I85a60fdb7a862b1a095b40a892de2304446184e1
Reviewed-on: https://gerrit.instructure.com/16603
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Brian Palmer <brianp@instructure.com>
QA-Review: Clare Hetherington <clare@instructure.com>
treesame commit of origin/stable/2013-01-05

Treesame-Commit-Id: 343c7b499f070cb2cfbe86f6ee974d8af65c3c93