Call to workflow::case::state_changed_handler must come before workflow::case::action::notify, otherwise assignees arent't created yet when notifications go out, which causes the notification to be sent to everyone
Bugfix for apm_package.new. Moved the insert into apm_packages up, before the update on acs_objects, to satisfy referential integrity on acs_object.package_id.