Add support for bash-like globs through 'extended' flag
Clean up code/tests, use options object instead of boolean paramater for extended globs.
Merge branch 'extended'