Assigning users apps and admin status, plus lots of tweaks