SessionAgent: fix members initialization order
NetworkManager: polish createSession() code a bit