Use "permanent" api in the dialog
Minor
Merge branch 've-sprint-5' into WikiaMediaInsertDialog-video
Cleanup/refactoring to ApiTempUpload.php
Last bits of WikiaMediaInsertDialog
Addressing code review
Addressing code review
Addressing the code review
Merge branch 've-sprint-5' into WikiaMediaInsertDialog-video

Conflicts:
	extensions/VisualEditor/wikia/modules/ve/ui/dialogs/ve.ui.WikiaMediaInsertDialog.js
Merge pull request #1865 from Wikia/WikiaMediaInsertDialog-video

VE-535/VE-536: Use "permanent" API before performing media insertion into the article.