Support for object relations, mongo now used for session store, preliminary history support, split features into services, tweaks to policies and permissions