Auth ui router

Updates #24 with the new auth structure.