JC: added session[:which_table] & session[:subaction] for log controller. Added session[:for_which] & session[:subaction]  to misc_definitions.