added auth, generateToken and tests
added http requests