Base for login

Lost all files of the API and some of the class structure. Reworking...