missed chunk in previous commit.
changed deprecated method call in collections.
added serializers for models.

- now serialization logic is nicely separeted from models