use URI class to extract file path from arbitrary URI, then hand it over to File class for filename extraction
replace URI Class with plain Regexp.
Add test for URI with parameters
make it more readable
Merge pull request #5 from insonifi/master

extract URL path first, then filename