Auth system is now fully functional. Needs more prettification, documentation and unit testing.