Make local copy of LDAP users on auth or get calls

Makes a local copy of users on auth or git calls. Also
clean up pdb references and move user creation to a function.