Only insert permissions once (Prevent duplicates)
Prevent duplicate usernames
Removed UserAuth (obsolete)
Change table name to `auth_permission`

(Permissions can now be linked to groups or users, so the name was obsolete)
Allow startSessionSync() and authenticateSync()