Modified registration workflow.

Now, if a user has selected courses when not registered and then
registers, these courses (including their filtered status) will be
automatically saved to their profile.