use query parameter to pass referer - part 2

The query parameter for the referer was already 
introduced for /login. This commit adds the 
same functionality to /signup.

Furthermore, the "routes" files of the sample
application are adjusted to the change.