Add ability to supply a custom callback url

This code adds the ability to supply a custom callback url.