Allow config.origin to be a callback
Merge pull request #9 from qwertme/master

Allow config.origin to be a callback