Initial creation of allow done

I am creating this pull request basically for discussion. I added the ability to have a new attribute on the directive called "allow" that will use the string specified (as a regex) to match the file types. If it does not match, it does not upload the file. I tested this with one of my own projects, but I am interested to know how others would want this to be implemented and how bad file types should be handled.