View referral implementation (not finished), removed low-level requests, improved login, added logout