Logout and friend-request routines added.