removing code duplication from controllers create and update

moved code to do with updating assay->asset relationships into assets:common to
be shared across controllers that require it.