Globals in the backend
To get flask to work, we used globals in multiple places.
However, we have recently found ways to completely eliminate the use of them.
This issue deals with globals in the loggercore, in remoteguicore and for auth everywhere.