Fix registration issues.

This fixes the finish registration button and updates the functions
to be more secure (by only accepting the uuid to finish registration
and not the user id) and brings it up to date with current authorization.
Closes #473