added comms class moved router into utils. implemented comms for login/logout