Replaced APE_sessid & APE_name with APE_User (APEClient_user object)
Added debug switch on "APE SESSID" print