Add enrollment term to course autocomplete

Test Plan:
  * Search under Find a Course on any Managed Accounts page
  * Search for a course in Import Content (Copy a Canvas Course)

The autocomplete drop-down should show course name and its term.
Improve course autocomplete customization

* Update spec to test for enrollment term subtitle in autocomplete
* Detect presense of autocomplete before customizing _renderItem
Improve course autocomplete customization (Part 2)

Update content migrations Selenium spec to test for enrollment term
subtitle in autocomplete.
Initialize course autocomplete within the bundle

Remove the original autocomplete behavior, in favor of this more robust
approach of initializing everything in one place.
Add aria-label to course autocomplete
fix permission checks around pseudonym creation

fixes CNVS-12633

test plan:
 * create an admin in account A
 * create a user in account B
 * admin in A should get permission denied trying to create a pseudonym
   in A for user from B
 * user from B should get permission denied trying to create a
   pseudonym for himself in A

Change-Id: Ie548122be01a4eeb4a2ffaaf85e28a775eb7fe66
Reviewed-on: https://gerrit.instructure.com/33804
Reviewed-by: Jacob Fugal <jacob@instructure.com>
QA-Review: August Thornton <august@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
add check for user visibility for adding admins

fixes CNVS-12638

test plan:
 * add a user to account B (admin, student, whatever)
 * try to add that user as an admin to account A via the API
 * it should fail with 404 not found

Change-Id: I219cb9ef7314c773fa206e5d0d2a351a8c3dde30
Reviewed-on: https://gerrit.instructure.com/33808
QA-Review: August Thornton <august@instructure.com>
Reviewed-by: Jacob Fugal <jacob@instructure.com>
Tested-by: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
add "Resolve path" to Folders API

fixes CNVS-11494

test plan:
 0. on both rails2 and rails3...
 1. find the "Resolve path" endpoint in the API docs
 2. in Course, Group, and User contexts:
   a. create some folders and subfolders
   b. use the new endpoint and confirm that
      (1) a full path such as "course files/folder/subfolder"
          returns an array containing each Folder in order;
      (2) status 404 is returned if the path doesn't exist
          (even if a partial match exists);
      (3) status 404 is returned if the requested folder or
          a parent folder is locked, the caller is a student,
          in Course context
      (4) users not authorized to access files receive a 401

Change-Id: I6438317fc8c847fa0a5c140bc9e91890d727514c
Reviewed-on: https://gerrit.instructure.com/33447
Tested-by: Jenkins <jenkins@instructure.com>
QA-Review: Clare Strong <clare@instructure.com>
Reviewed-by: Ryan Shaw <ryan@instructure.com>
Product-Review: Ryan Shaw <ryan@instructure.com>
Updated ru translation
Updated ja translation
shoehorn old quiz submission HTML into ember quizzes show page

Test plan:
  - As a teacher, the quiz submission results should render
    on the ember quizzes show page

closes CNVS-12453

Change-Id: I61a885509c1506629f5b8e18b3c5475b8052acb3
Reviewed-on: https://gerrit.instructure.com/33529
Reviewed-by: Derek DeVries <ddevries@instructure.com>
QA-Review: Caleb Guanzon <cguanzon@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
Product-Review: Stanley Stuart <stanley@instructure.com>
bump moodle2cc gem to 0.2.6

Change-Id: I507c6ac929cb3ffd5d5c9f0f5ec822b3043ef969
Reviewed-on: https://gerrit.instructure.com/33944
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Bracken Mosbacker <bracken@instructure.com>
Product-Review: Bracken Mosbacker <bracken@instructure.com>
QA-Review: Nathan Rogowski <nathan@instructure.com>
fix account user api call skip confirmation

skip confirmation on user create
and communication channel create

closes PS-1459

test plan:
  1. create a user with the user create
     api make sure to give that user a
     communication channel and use the
     skip_confirmation flag. This
     should work for a site
     admin token as well as account admin
     token

  2. create a new communication channel
     for a user using the skip_confirmation
     flag. This should work for site admin
     and account admin.

  3. In both cases the communication
     channel should be created and the
     workflow_state should be 'active'

Change-Id: I98fbec3c90082a066ea069004d586bfdcd123cb4
Reviewed-on: https://gerrit.instructure.com/33862
Reviewed-by: Dave Jungst <dave@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Jake Sorce <jake@instructure.com>
Product-Review: Jake Sorce <jake@instructure.com>
QA-Review: Jake Sorce <jake@instructure.com>
Tested-by: Jake Sorce <jake@instructure.com>
submit assignments via embedded LTI apps in tabs

fixes PLAT-477
fixes PLAT-479
fixes PLAT-480

test steps:
- Add one or two external tools which allow homework submission (e.g.
  box) and find the tabs on the submit assignment page
- Submit assignment using tool
- Add three more external tools which allow homework submission
- Ensure that you see the 'More' tab on submit assignment page and
  submit assignment using items under 'More' tab

Change-Id: I118b3fa059e6a4046c87b8cf894ce77ecffd9252
Reviewed-on: https://gerrit.instructure.com/33421
Reviewed-by: Simon Williams <simon@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Nathan Mills <nathanm@instructure.com>
Product-Review: Eric Berry <ericb@instructure.com>
QA-Review: Eric Berry <ericb@instructure.com>
profile: display profile pic rounded, as elsewhere

fixes CNVS-12383

test plan:
  * open profile page and settings page
  * verify that profile pic is rounded

Change-Id: Id2e5b1f08190e2ab8a305d89a0fe54ec22e1122d
Reviewed-on: https://gerrit.instructure.com/33261
Tested-by: Jenkins <jenkins@instructure.com>
QA-Review: Trevor deHaan <tdehaan@instructure.com>
Reviewed-by: Joel Hough <joel@instructure.com>
Product-Review: Braden Anderson <banderson@instructure.com>
fix ember quiz index to show admin buttons

closes CNVS-12430

test plan:
  - enable fabulous quizzes
    - (ie Account.default.settings[:enabled_fabulous_quizzes] = true)
    - visit the quiz index page for a course as an instructor
      - verify that add new quiz button and admin drop down are displayed
    - visit the quiz index page as a student
      - verify that new quiz button and drop down are not present

Change-Id: I67806a4e47f3280bb3fb8b2abf44b97588d264af
Reviewed-on: https://gerrit.instructure.com/33948
Reviewed-by: Stanley Stuart <stanley@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
QA-Review: Caleb Guanzon <cguanzon@instructure.com>
Product-Review: Jason Madsen <jmadsen@instructure.com>
Updated es translation
Updated zh translation
Updated pt translation
port initialize_database_with_postgresql_patches to rails3

fixes CNVS-9518

test plan:
 * set up your database to point to a host/port that ignores
   connections (*not* a non-existent name, or one that will actively
   refuse it). `nc <host> <port>` that doesn't return immediately,
   but doesn't actually return anything is a good test.
 * add a connect_timeout: 90 to database.yml and run script/server;
   it should take at least 90 seconds before giving you a failure
 * change connect_timeout to 3. it should fail MUCH faster

Change-Id: I97b65dbfbccf80774072e3a6bf2e1795c36e26cf
Reviewed-on: https://gerrit.instructure.com/33821
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Cody Cutrer <cody@instructure.com>
QA-Review: August Thornton <august@instructure.com>
Product-Review: Brian Palmer <brianp@instructure.com>