CLOUDIFY-2180 Refactoring. Store single reference to agent context

git-svn-id: svn://pc-lab14/SVN/xap/trunk/openspaces@161528 eb64e737-3616-4df0-8941-5ee2ae88103d