ported authentication functionality from old code
renamed 'type' because its internally used, added root user, assigned type as 0, all other users get type 1
route error on class create.. better rename participants to classregistrations
ported login from old code, class creation implemented for all users