Fixed session to only refresh apps when needed and to set policies on session init.
Merge branch 'devel' of github.com:shallem/LinkPublicAppServer into devel