Added support for gitignore-style semantics

I'm writing a gitignore module, and so need a glob module with gitignore semantics.  I chose yours, forked it and created "gitstyle" branch wherein I added support (and tests).  The only improvement over this code that I could potentially see being worth doing would be writing more tests (and/or making style changes).  Would you like me to do that?