Sharing behavior (#refresh and #set_attribute) between models

I've refactored the models to share some common behavior. They were defined on some models only. 
Now, all models will inherit this behavior.