Moved the majority of new user creation script to server side