Develop candidate2

This branch contains all branches for the rewiev and future merge with develop
In success response you return json, but when fail - trying to return plain-text. It is not an good idea