Move user creation functions to user.php
List groups