refactor; validate response JSON
create Validation namespace
implement API errors

fix PHPMD warning
implement more API errors
add misc error
cache decoded JSON
docblocks

docblock
rename MiscApiException to ApiException
Merge pull request #4 from easybiblabs/topics/error-handling

Topics/error handling