Moved specific class functions in their corresponding classes and
cleaned usersmanager.h and projectsmanager.h
also added some try/catch and exception handling