replaced implementation of editUser and createUser with Q-wrapped promises