Refactor import_csv

Refactored import users from csv and the User model.

Also added relevant tests to be sure it's working as intended.