MDL-33473,MDL-33950,MDL-33837 Allow non-js filepicker to pick files from moodle repositories
MDL-33473,MDL-33950,MDL-33837 Allow non-js filepicker to pick files from moodle repositories

- MDL-33473 actually make non-js filepicker to work with local repositories
- MDL-33950 validate that file is accessible
- MDL-33837 when picking a server file marked as main, do not make it main in current filearea

dilawar/moodle