renamed am_agent to am_session_agent; fix segfault in amd_session_agent after first app launch

Change-Id: I5b63c6f90161cf831b78816040dd227afc51dabb
Signed-off-by: Stephane Desneux <stephane.desneux@open.eurogiciel.org>