added synchronous methods in data permissions API
cleaned up IDataStore API anf fixed relationDepth problem which resulted in incorrect loading of relations when only relationsDepth parameter was specified.