* add "resource_id" to record / story ; formula defined into InstanceIdAware.php * fix tests * fix tests * switch to main/instance_id