Update response send on model creation.

Response should be sent from callback.
Merge pull request #513 from abobov/gh-pages

Update response send on model creation.