Allow url option to be a function
Merge pull request #1 from scttnlsn/master

Allow url option to be a function