More work on resource config check. Fix some BSON encoding code and modify session to be used in a non application environment (resource config check).
Merge branch 'devel' of https://github.com/shallem/LinkPublicAppServer into devel