auth refactoring, part 1

moving stuff to auth.js basically + allowing usergroups
undefined variable fix
auth refactoring: part 2

auth plugins
auth refactoring: part 3

moving htpasswd out
auth refactoring, part 1

moving stuff to auth.js basically + allowing usergroups
undefined variable fix
auth refactoring: part 2

auth plugins
Merge branch 'auth'