StudiesController#update: use a transaction since we are making multiple record types
StudiesController#update: delete links if passed an empty array

Rails converts this case to nil.  I had to update my logic to handle
this case.