Merge pull request #810 from nla/js-dsc-930

move digest generation forward. Make sure comaster amberId is generated ...
fix for comasters generation