first steps towards ruby API implementation, login done in JS/JAVA