Simple auth

Simplifies authentication to what I can understand.

This has the login bit worked out so far