One last bit of changes for the reworked login.
Pushing login changes to the main code base.

- Largely this is about making files use the registry
- Some logout functionality reworked around session