Reworked all authentication/authorization. Everything works much better and cleaner now.