Update Sign in / sign out links for luna

Also need to add some stuff so we can correctly link to the correct profile in Luna since Luna should be using UUIDs for profile.

Was originally #674