Bug fixes

Fixed critical edition creation, fixed associating source objects and versionable objects to a crit, and bug in the viewer found in end to end testing.