Finish implementing update installation.

Also add the option to update on exit.