add permissions dialog with multi select for files

closes: CNVS-15380
closes: CNVS-15382
closes: CNVS-15770

This commit changes the restricted access dialog modal to be a
permissions dialog modal. Icons will be updated later.

This also closes the multi select ticket.

Test
As a user that can access new files
Given I'm on the new files page
And I have files and folders
When I click on the permissions button (either a cloud, link icon or
calendar icon next to the files admin gear)
Then I should see a dialog modal
And there should be 4 options in that dialog modal
And those option should be publish, unpublish, make a hidden link and
schedule restricted access
When I select one of those options
And then I save
The option selected should be saved
And the icon corresponding to that action should update(ie turn into a
publish could or paperclip depending on what you selected)
When you re-open the permissions dialog modal by clicking the icon
Then you should see the permissions dialog modal maintains the correct
permissions state.

As a user that can access new files
Given I'm on the new files page
And I have files and folders
When I select multiple files or folders
Then the publish icon should appear in a toolbar above the file/folder
list
When I click on that icon
The Permissions Dialog should appear
And nothing should be selected by default
And you should be able to select an option
And selecting an option will enable the update button
And pressing the update button should update all files/folders in the
list

As a user that can access new files
Given I'm on the new files page
And I have files and folders
When I select multiple files or folders
Then the publish icon should appear in a toolbar above the file/folder
list
When I then select multiple items that have permissions in common
The Permissions Dialog should appear
And the common permissions should be selected by default
And pressing the update button should update all files/folders in the
list

Change-Id: Iae168abde26827dca3954b8c7b02c2d0e125f8c8
Reviewed-on: https://gerrit.instructure.com/41191
QA-Review: Clare Strong <clare@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Ryan Shaw <ryan@instructure.com>
Product-Review: Cosme Salazar <cosme@instructure.com>