Implemented authentification of users. Added framework for IClientAPI.