Success, error and cancel URLs with query parameters

This enables you to provide an URL like x-error=http://google.com?q=test