simplified the uploader directive so we can use any jquery.fileuploader callbacks. They are automatically wrapped in scope.$apply() so you don't have to worry about changing variable values in your callbacks.