Auth stuff

Lots of stuff, including auth