Enable ‘next’ redirection after registration.

This patch allows for redirection after registration. When no confirmation is required this enables a much smoother user experience.

Also, I've updated the menu template to propagate the next value from the login to the registration.