Changed notification system to use messages.
Added toJSON methods to model classes.
Removed unnecessary check.
Fully implemented Array model class.