Added ability to use custom link prompt

I found it impossible to integrate this plugin with my modal dialog without monkey patching the `window.prompt`. Now you can just pass it function that returns URL and it will be called on execution.

I also kept the old prompt so this should be a non-breaking change.