BRMS: Fix page indexes
BRMS: Fixed issues caused by RedDeer updates
bpmn-editor: code improvements