fix the frontend notification of bad file types and have the file picker limit the types shown

also, fixed several $scope.$apply instances
Merge branch 'file_types'