New callbackUrl function which is used all over.

Now the code does not remove custom query params anymore which allows
to do callbacks and such.