Revert "Do not generate an cookie as root when loading"

This reverts commit fed4519b3fa90f92cef1a4f9802eabc9692508c1.
Change authDir into stateDir
Set the auth file name to be the display name only
Change the user and group of the auth file to the sddm user when possible
Don't create .Xauthority for the sddm user
Merge pull request #180 from AnAkIn1/authfilefix

Fix cookie generation and set the correct cookie path for the greeter