added writer unit tests + changed names of some methods to more intuitive ones
Merge branch 'master' of https://github.com/rstgroup/json-api-php