[task2] - server side fixed for distinguishing create and update
Side note: AFAIK, create operation should be send as HTTP POST, not PUT
[task2] - now CRUD operations working fine on client side
[task2] - minor cleanup