Added test + fix for belongs_to to define an assoc setter based on name.

Change-Id: I67fa9ff0288997f6182be7305047469cb44b7ee4
Added test + fix for callbacks for destroy.

Change-Id: If25863ddeaf2a3a8744d19dcc13dddbe62b45e0b
Merge branch 'destroy-callbacks'