Eliminated BadRequestException, prepare an array of errors instead.
Refactored code to make things easier with validation error output. Added tests.
Some more refactoring. More logical is to set a result in the saveFields() method. Adjusted tests, removed last assert, where was a problem with id field in Postgres.
Merge pull request #118 from andrejs/master

Eliminated BadRequestException, prepare an array of errors instead.