Add full compatibility functions.
Add `ModelBase.__to_dict__` configuration property for `to_dict()`.
Add example for `ModelBase.__events__` usage in docs.