ActiveRecord changes

* Add `getFormattedAttributes()` and `getFormattedAttribute()`
* Improve label for related instances