Fixed wrong response on adding or editting objects.
Fixed objects not being saved.
Merge pull request #21 from denniseijpe/master

Fixed wrong response on adding or editting objects and fixed objects not being saved.