Revises relations, and added Active Model Serializer for json responsees